More than one artefact

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

More than one artefact

Bernd Schiffer
Hi.

How can I archive more than one artefact after a build? For instance, I want to archive all wars and zips, so with **/*.war I archive all wars, but how can I archive wars _and_ zips together?

Kind regards,
   Bernd
Reply | Threaded
Open this post in threaded view
|

Re: More than one artefact

Jesse Glick
Bernd Schiffer wrote:
> How can I archive more than one artefact after a build? For instance, I want
> to archive all wars and zips, so with **/*.war I archive all wars, but how
> can I archive wars _and_ zips together?

   Artifacts: [**/*.war **/*.zip_________]

Pretty easy. :-)

-J.

--
[hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: More than one artefact

Bernd Schiffer
Fast answer, good answer! Thank you, Jesse. I tried **/*.war, **/*.zip (with a comma), but that was way too complex ;-)

   Bernd

Jesse Glick wrote
Bernd Schiffer wrote:
> How can I archive more than one artefact after a build? For instance, I want
> to archive all wars and zips, so with **/*.war I archive all wars, but how
> can I archive wars _and_ zips together?

   Artifacts: [**/*.war **/*.zip_________]

Pretty easy. :-)

-J.

--
jesse.glick@sun.com  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
For additional commands, e-mail: users-help@hudson.dev.java.net
Reply | Threaded
Open this post in threaded view
|

Re: More than one artefact

Kohsuke Kawaguchi
Administrator
In reply to this post by Jesse Glick
Jesse Glick wrote:
> Bernd Schiffer wrote:
>> How can I archive more than one artefact after a build? For instance, I want
>> to archive all wars and zips, so with **/*.war I archive all wars, but how
>> can I archive wars _and_ zips together?
>
>    Artifacts: [**/*.war **/*.zip_________]
>
> Pretty easy. :-)

I didn't know that Ant uses whitespace as a separator, too. In that
case, how do I specify a path that includes whitespace? like "My
documents/march sales report.txt"?

I suppose the same problem exists with comma...

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: More than one artefact

David Weintraub-4
In reply to this post by Bernd Schiffer
I believe you can specify more than one, but what I prefer to do is copy
all of the artifacts I want to save in a single directory. That way, I
only have to change my ant script to change what artifacts I want to
save (since I'd probably be modifying the ant script anyway) instead of
having to change the Hudson configuration too.

-----Original Message-----
From: Bernd Schiffer [mailto:[hidden email]]
Sent: Friday, October 26, 2007 2:42 PM
To: [hidden email]
Subject: More than one artefact


Hi.

How can I archive more than one artefact after a build? For instance, I
want
to archive all wars and zips, so with **/*.war I archive all wars, but
how
can I archive wars _and_ zips together?

Kind regards,
   Bernd
--
View this message in context:
http://www.nabble.com/More-than-one-artefact-tf4699117.html#a13433152
Sent from the Hudson users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: More than one artefact

Jesse Glick
In reply to this post by Kohsuke Kawaguchi
Kohsuke Kawaguchi wrote:
> I didn't know that Ant uses whitespace as a separator, too. In that
> case, how do I specify a path that includes whitespace? like "My
> documents/march sales report.txt"?

I don't think it's possible other than using e.g.

   My*Documents/march*sales*report.txt

and trusting that there will not be unintentional matches.

-J.

--
[hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]