Custom macros?

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

Custom macros?

Richard Bair-2
Hi,

My project's build.xml file produces distributable named something like:

swingx-2007_01_29-bin.zip

I want to automatically upload the bin/zip distributables to  
java.net. Is there any way I can get the date inserted in this  
manner? Will it require a new macro, such as $BUILD_NUMBER?

THanks
Richard

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

Reply | Threaded
Open this post in threaded view
|

Re: Custom macros?

Kohsuke Kawaguchi-2
Richard Bair wrote:
> Hi,
>
> My project's build.xml file produces distributable named something like:
>
> swingx-2007_01_29-bin.zip
>
> I want to automatically upload the bin/zip distributables to  
> java.net. Is there any way I can get the date inserted in this  
> manner? Will it require a new macro, such as $BUILD_NUMBER?

Maybe I need to allow you to use a wildcard, so that you can specify

   swingx-*-bin.zip

can you file an RFE for this, so that I won't forget?

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: Custom macros?

Richard Bair-2
> can you file an RFE for this, so that I won't forget?

There ya go: https://hudson.dev.java.net/issues/show_bug.cgi?id=258

Thanks
Richard

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

Reply | Threaded
Open this post in threaded view
|

Re: Custom macros?

Kohsuke Kawaguchi-2
Richard Bair wrote:
>> can you file an RFE for this, so that I won't forget?
>
> There ya go: https://hudson.dev.java.net/issues/show_bug.cgi?id=258

I forgot to check with you but you won't have any problem if we still
retain the constraint that there can be only one file that matches this
wildcard, right?

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: Custom macros?

Richard Bair-2
> Richard Bair wrote:
>>> can you file an RFE for this, so that I won't forget?
>> There ya go: https://hudson.dev.java.net/issues/show_bug.cgi?id=258
>
> I forgot to check with you but you won't have any problem if we  
> still retain the constraint that there can be only one file that  
> matches this wildcard, right?

No, that won't hurt me. Just out of curiosity, why that constraint?

Richard

>
> --
> Kohsuke Kawaguchi
> Sun Microsystems                   [hidden email]

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

Reply | Threaded
Open this post in threaded view
|

Re: Custom macros?

Kohsuke Kawaguchi-2
Richard Bair wrote:
>> Richard Bair wrote:
>>>> can you file an RFE for this, so that I won't forget?
>>> There ya go: https://hudson.dev.java.net/issues/show_bug.cgi?id=258
>>
>> I forgot to check with you but you won't have any problem if we  
>> still retain the constraint that there can be only one file that  
>> matches this wildcard, right?
>
> No, that won't hurt me. Just out of curiosity, why that constraint?

Because if I allow multiple files to match, then I also need to allow
multiple destinations.

Hmm. But maybe that's just fine. If the source matches multiple files, I
guess I can interpret destination as a directory name, instead of a file
name, just like cp command.



--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment