Wow, that's great! I hadn't thought about this. I'm +1 to start with
this (less work too :-)). Thanks.

> -----Original Message-----
> From: Christopher Lenz [mailto:[EMAIL PROTECTED]]
> Sent: 05 January 2003 18:14
> To: Cactus Developers List
> Subject: Re: Ant subproject packaging
> 
> Vincent Massol wrote:
> [SNIP]
> > - A special Ant task that would be the equivalent of the Ant <ant>
task
> > BUT that would allow to execute build files located inside a jar.
> 
> Okay, I've spent some more brain cells on this issue. IMHO, a separate
> <cactusCall> task is sorta ugly, and I'd rather opt for a simpler or a
> more elegant solution.
> 
> As I understand, our preliminary concern is reuse of the buildfile
> snippets in the sample-servlet. They should be packaged in the
> "Ant-Spine" JAR, and be usable without the need to extract them.
> 
> Now, consider the following snippet:
> 
>    <?xml version="1.0"?>
>    <!DOCTYPE project [
>      <!ENTITY cactus_tomcat4_targets SYSTEM
>               "jar:file:cactus.jar!/.../build-tests-tomcat-40.xml">
>    ]>
> 
>    <project name="MyProject" default="test">
>      &cactus_tomcat4_targets;
>      <target name="test"
>           depends="test.tomcat.40">
>      </target>
>    </project>
> 
> (exact path inside the JAR ommitted for brevity).
> 
> The good news is: this actually works! :-)
> 
> So simply packaging up the buildfile fragments, and adding a tutorial
> with good documentation on properties and targets (like 'testwar')
could
> be all we need...
> 
> In the long term, we should be watching and participating in the
design
> of "Antlib", a target feature for Ant 1.6. Maybe, just maybe, we can
> sneek in support for calling targets defined in JARs... ;-)
> 

[snip]

-Vincent


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to