Said another way I have enough complexity in my development projects no need to add more...
thanks again, -Glen
Matt Benson wrote:
Unless your actual needs are much more complicated than your example, do check my last post before you get too deep into coding your own selector.
-Matt
--- Glen <[EMAIL PROTECTED]> wrote:
I think I know what you are saying now. I havehttp://ant.apache.org/manual/CoreTypes/selectors-program.html
found this page on programming custom selectors
=== message truncated ===Which looks fairly straightforward. I am starting to code it now...
Thanks :-)
Glen wrote:
Matt I am intrigued could you elaborate or give anexample?
Are you suggesting I should create a customselector that can take a
reference to another fileset?and fileset b into
Or is what I am trying to do (combine fileset A
fileset C) possible with the selector's that comewith 1.6 ?
requiring a slightly
Matt Benson wrote:
Use selectors in Ant 1.6.0.
-Matt
--- Glen <[EMAIL PROTECTED]> wrote:
I am wondering if there is an easier way to do
something. I have several different tasks each
my build.xml sodifferent classpath or fileset. I have modified
You know if I addthat I am
sharing this information as much as possible.
build.xml and all thea jar I only have to add it in one place in the
thenproper places pick up the appropriate reference.
My solution has been to define pattern sets,
classpath from the filefile sets using those pattern sets, and then a
great but I am a programmersets (the code is at the bottom). It works
asking.and I like to fiddle so here is what I am
able to combine toAre there any ways to use just filesets and NO
pattern sets. Ultimately I would like to be
dir="./myproject/redist/" />filesets say like so...
<fileset id="a"
file="./myproject/xyzpdq..jar" />
<fileset id="b"
end<fileset id="c" dir="./myproject/" >
<fileset refid="a" />
<fileset refid="b" />
</fileset> This would greatly simplify the script at the
and a file set forbecause I currently have to create a pattern set
clever recommendationseach
bit I need. I am wondering if anyone has some
as far as I know)...since I can't do what I just laid out (at least
failsAt least the when we add a jar now the build
as before it would failonce then we add the jar to the build.xml where
place that needed theseveral times in a row each time showing a new
/>jar referenced LOL
-Glen
Here is the code snippet....
<!-- jars needed to build the software but NOT needed at runtime --> <patternset id="buildtime.patternset"> <include name="tools/resin3/lib/jsdk-24.jar" /> <include name="tools/resin3/lib/resin.jar" />
<include name="tools/batik/lib/*.jar"
runtime<include name="tools/xdoclet-1.2/lib/*.jar" />
</patternset>
<!-- jars needed to buildtime and at
/>--> <patternset id="runtime.patternset">
<include name="tools/sun/jaf-1.0.2/activation.jar"/> <include name="tools/sun/javamail-1.3.1/mail.jar"/>
<include name="birthprint/lib/*.jar"
name="model3/lib.deploy/*.jar"<include name="tools/sun/jai-1_1_2/lib/*.jar" />
<include
id="generated_jars.patternset">/> <include name="tools/hibernate-2.1/lib/*.jar" />
<include name="tools/sun/commapi/lib/*.jar" />
</patternset>
<patternset
name="model3/output/model3.jar"<include
name="birthprint/output/birthprint.jar" />
<include
<fileset/>
</patternset>
refid="runtime.patternset"id="generated_jars.fileset"
dir="${code_root}" >
<patternset
the/>
<patternset
refid="generated_jars.patternset" />
</fileset>
<!-- all the files I need to copy to
refid="runtime.patternset"lib directory -->
<fileset id="deploy.fileset"
dir="${code_root}" >
<patternset
name="tools/sun/commapi/lib/*"/> <patternset refid="generated_jars.patternset" />
<filename name="birthprint/lib/*" />
<filename
refid="runtime.patternset"/>
<filename
name="tools/sun/jai-1_1_2/lib/*" />
</fileset> <!-- all the files needed to run the
software -->
<fileset id="runtime.fileset"
dir="${code_root}" >
<patternset
refid="buildtime.patternset"/>
</fileset> <fileset id="buildtime.fileset"
dir="${code_root}" >
<patternset
location="${classes}"/>/>
</fileset> <!-- the classpath is made up of the
<path id="project.classpath" >
<pathelement
location="${resources}"/><pathelement
<pathelement
location="${model3}/classes/"/>
__________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
