Add images to jar, in specipic locate using ANT

I successfully insert the images into the jar file but all the images go to the root directory inside the jar how can I place the image in a specific place inside the jar

that's what i still have, thanks

    <target name="dist" depends="compile" description="generate the distribution">
    <jar jarfile="target/jarFile.jar" basedir="${build}" update="true">

        <fileset dir="${src}/org/test/images/">
            <include name="**/*.png" />
        </fileset>

    </jar>
    </target>
+3
source share
1 answer
<target name="dist" depends="compile" description="generate the distribution">
    <jar jarfile="target/jarFile.jar" basedir="${build}" update="true">

        <fileset dir="${src}">
            <include name="org/test/images/**/*.png" />
        </fileset>

    </jar>
</target>

may be what you are looking for.

+10
source

Source: https://habr.com/ru/post/1741013/


All Articles