Changeset 31281 in osm for applications/editors/josm


Ignore:
Timestamp:
2015-06-18T23:39:19+02:00 (9 years ago)
Author:
donvip
Message:

[josm_plugins] fix #josm11570 - invalid jar for log4j plugin

Location:
applications/editors/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/build-common.xml

    r31070 r31281  
    144144        <antcall target="additional-manifest" />
    145145        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="MANIFEST">
    146             <zipgroupfileset dir="${plugin.lib.dir}" includes="*.jar" excludes="*-sources.jar, *-javadoc.jar" erroronmissingdir="no"/>
     146            <restrict>
     147                <not><or>
     148                    <name name="META-INF/maven/*"/>
     149                    <name name="META-INF/DEPENDENCIES"/>
     150                    <name name="META-INF/LICENSE"/>
     151                    <name name="META-INF/NOTICE"/>
     152                </or></not>
     153                <archives>
     154                    <zips>
     155                        <fileset dir="${plugin.lib.dir}" includes="*.jar" excludes="*-sources.jar, *-javadoc.jar" erroronmissingdir="no"/>
     156                    </zips>
     157                </archives>
     158            </restrict>
    147159        </jar>
    148160        <delete file="MANIFEST" failonerror="no"/>
     
    150162    </target>
    151163    <target name="post-dist">
    152         <!-- to be overidden by plugins that need to perform additional tasks on resulting jar -->
     164        <!-- to be overidden by plugins that need to perform additional tasks on resulting jar -->
    153165    </target>
    154166    <target name="add-manifest-attribute" depends="check-manifest-attribute" if="have-${property.name}">
     
    386398    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    387399    </target>
    388        
     400
    389401    <path id="test.classpath">
    390402        <fileset dir="../00_core_test_lib">
     
    467479        </sequential>
    468480    </target>
    469        
     481
    470482    <target name="runjosm" depends="install">
    471483        <java jar="${josm}" fork="true">
     
    488500    * dist        This default target builds the plugin jar file
    489501    * clean       Cleanup automatical created files
    490         * test        Run unit tests (if any)
     502    * test        Run unit tests (if any)
    491503    * publish     Checkin source code, build jar and checkin plugin jar
    492504                  (requires proper entry for SVN commit message!)
Note: See TracChangeset for help on using the changeset viewer.