Hi Steffen, you don't use a refid in the param statement.  Look at
the example I appended and you'll see that it's a normal param name
and value.  In the generic-compile task, I use the patternset refid
to specify what to compile.

Le me know if there are more questions.

Steffen Euch wrote:
> 
> Hi!
> 
> Sounds great, but how kann I pass a whole patternset via such a <param>
> to generic-compile?
> It supports no refid attribute.
> 
> <patternset id="ps" >
>      <include name="foo/aaa/*"/>
>      <include name="foo/bbb/*"/>
>      <include name="foo2/*"/>
> </patternset>
> 
> <target name="foo">
>      <antcall target="generic-compile">
>          <param name="generic.compile" refid="ps"/> <!-- doesn't work -->
>      </antcall>
> </target>
> 
> Thanks in advance,
> 
> Steffen
> 
> Larry V. Streepy, Jr. wrote:
> 
> > I came up with a pattern that uses one target to do the compile and
> > then other targets use antcall to invoke it, like this:
> >
> >   <!-- ==================================================================== -->
> >   <!-- Generic compilation target - uses javac.patternset to control        -->
> >   <!-- what gets compiled                                                   -->
> >   <!-- ==================================================================== -->
> >   <target name="generic-compile">
> >     <javac srcdir="${src.dir}"
> >            destdir="${build.lib}"
> >            debug="${debug}"
> >            deprecation="${deprecation}"
> >            optimize="${optimize}"
> >            failonerror="yes"
> >            depend="yes"
> >            includeAntRuntime="no" >
> >       <bootclasspath refid="rt.path" />
> >       <classpath refid="base.path" />
> >       <patternset refid="${javac.patternset}" />
> >     </javac>
> >   </target>
> >
> >   <!-- ==================================================================== -->
> >   <!-- Compile everything at once                                           -->
> >   <!-- ==================================================================== -->
> >   <target name="compile"
> >           depends="prepare-build"
> >           description="Compile ALL classes at once" >
> >
> >     <antcall target="generic-compile">
> >       <param name="javac.patternset" value="le.paths.all"/>
> >     </antcall>
> >   </target>
> >
> >   <!-- ==================================================================== -->
> >   <!-- Compile the utility classes                                          -->
> >   <!-- ==================================================================== -->
> >   <target name="compile-util"
> >           depends="prepare-build"
> >           description="Compile the utility classes" >
> >
> >     <antcall target="generic-compile">
> >       <param name="javac.patternset" value="le.paths.util"/>
> >     </antcall>
> >   </target>

-- 
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering

Health Language, Inc.  -- "We speak the language of healthcare"

970/626-5028 (office)           mailto:[EMAIL PROTECTED]
970/626-4425 (fax)              http://www.healthlanguage.com

Reply via email to