开发者

add images into jar ,into specipic locate using ANT

开发者 https://www.devze.com 2022-12-27 07:06 出处:网络
i am successfully inserting images into my jar file but all images go to the root directory inside the jar

i am successfully inserting images into my jar file but all images go to the root directory inside the jar how can i place image in a specific location inside the jar

this is what i have so far ,thank you

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

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

    </jar>
    </target>


<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>

might be what you are looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消