Pete:  Not bad, considering i just did the first binary
build with it in there a few days ago. :)


----------------
Matthew Inger [inger@synygy.com]
Software Developer
Synygy, Inc
610-664-7433 x 7770
"Self Respect - The secure feeling that no one, as yet,
 is suspicious" - HL Mencken


-----Original Message-----
From: peter reilly [mailto:peter.reilly@corvil.com]
Sent: Wednesday, March 26, 2003 4:26 AM
To: ant-contrib-developers@lists.sourceforge.net
Subject: Re: [Ant-contrib-developers] RE: Help with <outofdate> (was
<uptodate>


Opps, I pressed reply and not reply-all (again)

Peter
On Wednesday 26 March 2003 09:12, you wrote:
> Cool > 2 people using outofdate :)
>
> I think the problem is that your target files collection is empty,
> and the directory config is present and is newer than config.dtd.
>
> Looking at the build script, I am confused as to what
> is the input of zeus and what is the output, the targetfiles
> specify java files. (I see that config is a directory).
>
> Also normally generated files should not be placed a source
> directory (if this is what zeus does)
>
> Anyway if zeus takes in the config.dtd
> and java files in a config directory,
> I would find the names of some of the java files
> generated (unless you can use a mapper), place them
> in a generated directory.
>
> <target name="runzeus">
>     <property name="zeus.gen"
>                    location="${build.gen}/com/broadq/qcaststation/config"/>
>     <outofdate>
>         <sourcefiles path="config.dtd"/>
>         <targetfiles>
>           <!-- specific files/directories-->
>             <pathelement  location="${zeus.gen}"/>
>             <pathelement  location="${zeus.gen}/Gen.java"/>
>             <!-- all generated -->
>             <fileset dir="${zeus.gen}"/>
>        </targetfiles>
>        <!-- if targets are outofdate this is triggered -->
>        <sequential>
>           <zeus destDir="${build.gen}">
>              <constraint type="DTD" constraintFile="config.dtd"
>                   collapseSimpleElements="true"
>                   javaPackage="com.broadq.qcaststation.config"/>
>          </zeus>
>        </sequential>
>     </outofdate>
> </target>
>
> You can use the attributes outputtargets, outputsources, and
> alltargets to debug the outofdate task.
>
> Peter.
>
> On Tuesday 25 March 2003 22:51, Jason Bodnar wrote:
> > On Tue, 25 Mar 2003 16:12:15 -0600, Dominique Devienne wrote
> >
> > > I strongly advise you to use <outofdate> from Ant-contrib instead ;-)
> >
> > Advise taken. But now my zeus task never runs no matter what the
> > timestamps of the source and target files. I now have the following in my
> > build.xml:
> >
> > <!-- decide if we need to run the zeus task -->
> > <target name="configUptodate" depends="init"
> >         description="Update config classes if the dtd has changed">
> >  <outofdate property="runZeus">
> >   <sourcefiles>
> >    <pathelement location="config.dtd"/>
> >   </sourcefiles>
> >   <targetfiles>
> >    <pathelement path="${src}/com/broadq/qcaststation/config"/>
> >    <fileset dir=".">
> >     <include name="**/*.java"/>
> >    </fileset>
> >   </targetfiles>
> >  </outofdate>
> > </target>
> >
> > <target name="zeus" depends="configUptodate" if="${runZeus}"
> >         description="make zeus classes">
> >  <zeus destDir="${src}">
> >   <constraint type="DTD" constraintFile="config.dtd"
> >               collapseSimpleElements="true"
> >               javaPackage="com.broadq.qcaststation.config"/>
> >  </zeus>
> > </target>



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Ant-contrib-developers mailing list
Ant-contrib-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ant-contrib-developers