Changeset 29708 in osm for applications/editors/josm/plugins
- Timestamp:
- 2013-06-26T22:23:54+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/pbf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf/build.xml
r29435 r29708 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <!--3 ** This is a template build file for the PBF plugin.4 **5 ** Maintaining versions6 ** ====================7 ** see README.template8 **9 ** Usage10 ** =====11 ** To build it run12 **13 ** > ant dist14 **15 ** To install the generated plugin locally (in you default plugin directory) run16 **17 ** > ant install18 **19 ** The generated plugin jar is not automatically available in JOSMs plugin configuration20 ** dialog. You have to check it in first.21 **22 ** Use the ant target 'publish' to check in the plugin and make it available to other23 ** JOSM users:24 ** set the properties commit.message and plugin.main.version25 ** and run26 ** > ant publish27 **28 **29 -->30 2 <project name="pbf" default="dist" basedir="."> 31 3 … … 33 5 <property name="commit.message" value="Commit message"/> 34 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value=" 4687"/>7 <property name="plugin.main.version" value="6031"/> 36 8 37 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/action/DownloadPbfTask.java
r26961 r29708 15 15 // along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 package org.openstreetmap.josm.plugins.pbf.action; 17 18 import static org.openstreetmap.josm.tools.I18n.tr; 17 19 18 20 import java.util.concurrent.Future; … … 43 45 } 44 46 45 @Override 46 public boolean acceptsUrl(String url) { 47 return url != null && url.endsWith(EXTENSION); 48 } 47 @Override 48 public String[] getPatterns() { 49 return new String[]{".*\\."+EXTENSION}; 50 } 51 52 @Override 53 public String getTitle() { 54 return tr("Download PBF"); 55 } 49 56 }
Note:
See TracChangeset
for help on using the changeset viewer.