Ant builds broken

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

Ant builds broken

Daniel Dyer-2
Something's changed in the last couple of days that stops my previously  
configured Ant projects from working properly.  The Ant runner now always  
specifies the "-file" switch, even when a build file has not been  
specified.

Looking at the modified code (in Ant.java and Util.java), I'm assuming  
that the build file name is an empty string (rather than null), so it  
slips through and then Ant fails when invoked.  For example, Hudson is now  
running the following command to run Ant on my project:

        ant -file  clean dist

It should be either:

        ant clean dist

Or:

        ant -file build.xml clean dist

Dan.

--
Daniel Dyer
https://watchmaker.dev.java.net - Evolutionary Computation for Java

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

Reply | Threaded
Open this post in threaded view
|

Re: Ant builds broken

Jesse Glick
Daniel Dyer wrote:
> Something's changed in the last couple of days that stops my
> previously configured Ant projects from working properly.

Make sure you file a bug report with high priority.

--
[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: Ant builds broken

Kohsuke Kawaguchi
Administrator
I have a feeling that the empty string is passed around where it
should be null. I bet this is related to my recent change to use JSON
submission.

2007/11/12, Jesse Glick <[hidden email]>:

> Daniel Dyer wrote:
> > Something's changed in the last couple of days that stops my
> > previously configured Ant projects from working properly.
>
> Make sure you file a bug report with high priority.
>
> --
> [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]
>
>


--
Kohsuke Kawaguchi

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

Reply | Threaded
Open this post in threaded view
|

Re: Ant builds broken

Kohsuke Kawaguchi
Administrator
Bingo. I'll release 1.155 tomorrow with this fix.

2007/11/12, Kohsuke Kawaguchi <[hidden email]>:
> I have a feeling that the empty string is passed around where it
> should be null. I bet this is related to my recent change to use JSON
> submission.

--
Kohsuke Kawaguchi

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