ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eduardo Godoy" <ego...@tekchile.cl>
Subject jar problem (classfileset and rootfileset)
Date Wed, 24 Sep 2003 15:54:33 GMT
HI,
    I'm new at Ant... but I have my scripts running :)

My problem is, if I have 2 "projects", say A and B, and I want to generate a
"tiny" jar from B with all the files that A needs...

Projects-
            |
            + A->classes
            |
            + B->classes

I tried to do

<target name="depend_A">
    <classfileset id="classeslist" dir="${B.classes}">
    <rootfileset dir="${A.classes}" includes="**/*.class"/>
</classfileset>

<copy todir="${tiny.jar}">
    <fileset refid="classeslist"/>
</copy>
</target>

I also tried (a little confused)

<target name="depend_A">
    <classfileset id="classeslist" dir="${A.classes}">
    <rootfileset dir="${B.classes}" includes="**/*.class"/>
    </classfileset>
<copy todir="${tiny.jar}">
    <fileset refid="classeslist"/>
</copy>
</target>

but I can't get what I'm looking for....

Any Idea?
Eduardo.
BTW: I don't want to use genjar, cause I don't want to include my tiny-jar
into A.jar


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message