开发者

add images into jar ,into specipic locate using ANT

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜