Changeset 19296 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-01-06T21:13:56+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/osmarender
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/osmarender/build.xml
r18971 r19296 34 34 35 35 36 <property name="commit.message" value=" Removed dependency to perl, made build.xml more robust" />37 <property name="plugin.main.version" value="2 565" />36 <property name="commit.message" value="Update to JOSM r2748" /> 37 <property name="plugin.main.version" value="2748" /> 38 38 39 39 <target name="init"> … … 63 63 </target> 64 64 <target name="revision"> 65 66 67 68 69 70 71 72 65 <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false"> 66 <env key="LANG" value="C"/> 67 <arg value="../getrevision.pl"/> 68 <arg value="xslt"/> 69 <arg value="stylesheets"/> 70 <arg value="." /> 71 </exec> 72 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="true" failonerror="true"> 73 73 <env key="LANG" value="C" /> 74 74 <arg value="info" /> … … 93 93 </target> 94 94 95 <!-- ************************** Publishing the plugin *********************************** -->96 95 <!-- 97 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 98 ** property ${coreversion.info.entry.revision} 99 ** 100 --> 96 ************************** Publishing the plugin *********************************** 97 --> 98 <!-- 99 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 100 ** property ${coreversion.info.entry.revision} 101 ** 102 --> 101 103 <target name="core-info"> 102 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails=" true" failonerror="true">103 <env key="LANG" value="C" 104 <arg value="info" 105 <arg value="--xml" 106 <arg value="../../core" 104 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 105 <env key="LANG" value="C"/> 106 <arg value="info"/> 107 <arg value="--xml"/> 108 <arg value="../../core"/> 107 109 </exec> 108 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" 110 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 109 111 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 110 112 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> … … 112 114 </target> 113 115 114 <!-- ** commits the source tree for this plugin ** --> 116 <!-- 117 ** commits the source tree for this plugin 118 --> 115 119 <target name="commit-current"> 116 120 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 117 <exec append="true" output="svn.log" executable="svn" failifexecutionfails=" true" failonerror="true">118 <env key="LANG" value="C" 119 <arg value="commit" 120 <arg value="-m '${commit.message}'" 121 <arg value="." 121 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 122 <env key="LANG" value="C"/> 123 <arg value="commit"/> 124 <arg value="-m '${commit.message}'"/> 125 <arg value="."/> 122 126 </exec> 123 127 </target> 124 128 125 <!-- ** updates (svn up) the source tree for this plugin --> 129 <!-- 130 ** updates (svn up) the source tree for this plugin 131 --> 126 132 <target name="update-current"> 127 133 <echo>Updating plugin source ...</echo> 128 <exec append="true" output="svn.log" executable="svn" failifexecutionfails=" true" failonerror="true">129 <env key="LANG" value="C" 130 <arg value="up" 131 <arg value="." 134 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 135 <env key="LANG" value="C"/> 136 <arg value="up"/> 137 <arg value="."/> 132 138 </exec> 133 139 <echo>Updating ${plugin.jar} ...</echo> 134 <exec append="true" output="svn.log" executable="svn" failifexecutionfails=" true" failonerror="true">135 <env key="LANG" value="C" 136 <arg value="up" 137 <arg value="../dist/${plugin.jar}" 140 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 141 <env key="LANG" value="C"/> 142 <arg value="up"/> 143 <arg value="../dist/${plugin.jar}"/> 138 144 </exec> 139 145 </target> 140 146 141 <!-- ** commits the plugin.jar --> 147 <!-- 148 ** commits the plugin.jar 149 --> 142 150 <target name="commit-dist"> 143 151 <echo> … … 151 159 Now commiting ${plugin.jar} ... 152 160 </echo> 153 <exec append="true" output="svn.log" executable="svn" failifexecutionfails=" true" failonerror="true">154 <env key="LANG" value="C" 155 <arg value="-m '${commit.message}'" 156 <arg value="commit" 157 <arg value="${plugin.jar}" 161 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 162 <env key="LANG" value="C"/> 163 <arg value="-m '${commit.message}'"/> 164 <arg value="commit"/> 165 <arg value="${plugin.jar}"/> 158 166 </exec> 159 167 </target> … … 161 169 <!-- ** make sure svn is present as a command line tool ** --> 162 170 <target name="ensure-svn-present"> 163 <exec append="true" output="svn.log" executable="svn" failonerror="false" resultproperty="svn.exit.code"> 164 <env key="LANG" value="C" 165 <arg value="--version"/> 171 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 172 <env key="LANG" value="C" /> 173 <arg value="--version" /> 166 174 </exec> 167 <fail message="Fatal: command 'svn' not found. Please make sure svn is installed on your system."> 175 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 176 <!-- return code not set at all? Most likely svn isn't installed --> 177 <condition> 178 <not> 179 <isset property="svn.exit.code" /> 180 </not> 181 </condition> 182 </fail> 183 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 184 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 168 185 <condition> 169 186 <isfailure code="${svn.exit.code}" /> … … 172 189 </target> 173 190 174 <!-- ** checkin source, build the plugin from scratch and finally checkin the plugin ** -->175 191 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 176 192 </target> -
applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java
r18969 r19296 34 34 import org.openstreetmap.josm.gui.preferences.PreferenceDialog; 35 35 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 36 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane; 36 37 import org.openstreetmap.josm.io.OsmWriter; 37 38 import org.openstreetmap.josm.plugins.Plugin; … … 127 128 return new PreferenceSetting(){ 128 129 private JTextField firefox = new JTextField(10); 129 public void addGui(Preference Dialoggui) {130 public void addGui(PreferenceTabbedPane gui) { 130 131 final JPanel panel = new JPanel(new GridBagLayout()); 131 132 panel.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 ));
Note:
See TracChangeset
for help on using the changeset viewer.