RE: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread Toomey, Kevin H (CTO Org)
Might not be the same but I remember one where a new BigDecimal(int i) caused a problem. That constructor doesn't exist in JDK 1.4 but the compiler would convert it to BigDecimal(double d) under the covers. Java 1.6 does allow the BigDecimal(int i) so it left it alone and compiled it as is. The

sshexec behaviour

2011-02-15 Thread Maureen Troendle
I'm using Ant version 1.7.0 on AIX 5.3 servers and I'm seeing some odd behavior, just wondering if anyone else has encountered this. I'm copying some zip files over to another server, unzipping them, ssh'ing and doing a chmod u+x, then trying to execute one of the scripts. It seems everytime I

RE: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread Scot P. Floess
Here's an altogether different approach, but if your developers' goal is to control what version of byte code is created, have them utilize the -source and -target attributes of the task. I have my developers do that and it allows me to use the latest JDK for all builds (400+ development stre

Re: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread Vimil Saju
> > Actually, that's the conflict I was worried about. Jenkins > allows me > to specify both the Java version and the Ant version. I > WANT to use > the Java version specified in Hudson control panel and not > whatever > JAVA_HOME might be set to. > I see, Jenkins exposes JAVA_HOME variable whic

can ivy read license information from poms?

2011-02-15 Thread Valerie Wagner
I'm running ivy:report and I see that modules form our repository that have only poms do not list the license information (even though the information is in the pom). I searched the list archives and found this: http://www.mail-archive.com/ivy-user@ant.apache.org/msg01388.html including thi

RE: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread Toomey, Kevin H (CTO Org)
David, Here's an altogether different approach, but if your developers' goal is to control what version of byte code is created, have them utilize the -source and -target attributes of the task. I have my developers do that and it allows me to use the latest JDK for all builds (400+ development

Re: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread David Weintraub
On Tue, Feb 15, 2011 at 2:50 PM, Robert Kirkpatrick wrote: > See http://jwaresoftware.org/wiki/antxtras/home Yeah, I was just looking at it, and it requires different versions for different versions of Ant. Otherwise, it looks like what Apache is pushing. -- David Weintraub qazw...@gmail.com -

Re: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread David Weintraub
> Dual Java Compilers > I have a project that I build using Jenkins (previously Hudson) which > allows me to choose the version of the JDK I want to use when building the > project. My developers want the ability to select the JAVA compiler to use > via a properties file. > > The problem is

Re: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread Gilbert Rebhan
Original Message Subject: Dual Java Compilers/Replacement for antcontrib From: David Weintraub To: Ant Users List , jenkinsci-users+subscr...@googlegroups.com Date: Tue Feb 15 2011 20:38:32 GMT+0100 (CET) > I've got two questions: [..] > Replacement for AntContrib > ==

Re: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread Robert Kirkpatrick
Le 15/02/2011 20:38, David Weintraub a écrit : I've got two questions: Dual Java Compilers === I have a project that I build using Jenkins (previously Hudson) which allows me to choose the version of the JDK I want to use when building the project. My developers want the ability

Re: Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread Vimil Saju
> > Dual Java Compilers > === > > I have a project that I build using Jenkins (previously > Hudson)  which > allows me to choose the version of the JDK I want to use > when building > the project. My developers want the ability to select the > JAVA > compiler to use via a properties f

Dual Java Compilers/Replacement for antcontrib

2011-02-15 Thread David Weintraub
I've got two questions: Dual Java Compilers === I have a project that I build using Jenkins (previously Hudson) which allows me to choose the version of the JDK I want to use when building the project. My developers want the ability to select the JAVA compiler to use via a properties

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Stefan Bodewig
[Pulling together a few responses] On 2011-02-15, Mohan wrote: > I'm not using any wrapper script for ant invocation. I'm invoking the > ant script directly from Ant-1.8.2/bin/ant as shown in the second > update. "the ant script directly from Ant-1.8.2/bin/ant" is the wrapper script I was talkin

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Vimil Saju
> Just to clarify, if I use getProject(), I'm not getting an > error.  But I > would like to create a new Project in the Obfuscate's > execute method where I > want to run my tasks. > > Is there no way to create a new Project and run the tasks > that I want? It s not advisable to create a new p

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Mohan
Just to clarify, if I use getProject(), I'm not getting an error. But I would like to create a new Project in the Obfuscate's execute method where I want to run my tasks. Is there no way to create a new Project and run the tasks that I want? Thanks, Mohan. -- View this message in context: htt

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Mohan
Stefan, Are you able to reproduce the issue using the code snippet provided? Thanks, Mohan. -- View this message in context: http://ant.1045680.n5.nabble.com/project-createTask-not-working-with-ant-1-8-2-tp3385716p3386125.html Sent from the Ant - Users mailing list archive at Nabble.com. ---

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread bool
>> You shouldn't create a new Project object Is there any reason? It was working perfectly fine with 1.7.1 version -- View this message in context: http://ant.1045680.n5.nabble.com/project-createTask-not-working-with-ant-1-8-2-tp3385716p3386108.html Sent from the Ant - Users mailing list archiv

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Vimil Saju
>     /** >      * Executes the desObfuscate task. >      */ >     @Override >     public void execute() throws BuildException >     { >         myProject = new Project(); > >         // Create ANT tasks >         Task delete = (Delete) > myProject.createTask(DELETE_TASK); > >     } > } You shou

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Mohan
I'm also attaching the stack trace of the error produced by the "-v" option, if it helps :) $> /prod/tools/infra/apache/ant-1.8.2/bin/ant compile -v Apache Ant(TM) version 1.8.2 compiled on December 20 2010 Trying the default build file: build.xml Buildfile: /u/chittelk/build.xml Detected Java ve

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread bool
Also we see failures when we donot have "force" attribute set for overriding read only files. So we should be using 1.8.2 version only right as this feature is present only in this version.??? -- View this message in context: http://ant.1045680.n5.nabble.com/project-createTask-not-working-wi

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Mohan
>> One thing to look out for apart from the obvious CLASSPATH environment variable, ${ANT_HOME}/lib and ~/.ant/lib is the shell script you use to launch Ant (I assume a Unix like system from ant.jar's path in your error message). * I do not have the CLASSPATH variable set. I also do not have th

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Stefan Bodewig
On 2011-02-15, bool wrote: > createTask() method is throwing the following error with ant-1.8.2 while it > works perfectly with Ant 1.7.1. > import org.apache.tools.ant.taskdefs.Delete; > Delete delete = (Delete) myProject.createTask("Delete"); > jar:file:/myant/ant-1.8.2/lib/ant.jar!/org/apache

Re: project.createTask() not working with ant-1.8.2

2011-02-15 Thread Mohan
I'm attaching a sample code to reproduce the issue mentioned above. Could you please suggest a solution for this issue: The build.xml file : Build file ${ant.version} === Java

project.createTask() not working with ant-1.8.2

2011-02-15 Thread bool
createTask() method is throwing the following error with ant-1.8.2 while it works perfectly with Ant 1.7.1. import org.apache.tools.ant.taskdefs.Delete; Delete delete = (Delete) myProject.createTask("Delete"); jar:file:/myant/ant-1.8.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37: Problem: