RE: Apply argument wrapping with msiexec

2010-11-10 Thread Martin Gainty
coming late into the game.. I ALWAYS use C:/DOCUME~1 instead of C:/Documents and Settings and the shortened folder names always work with every tool under sun i have to inquire why bring msiexec into the mix? you can make, package and copy all with ant tools (and now with maven using maven-na

Re: Apply argument wrapping with msiexec

2010-11-10 Thread Niklas Matthies
This is interesting. It's caused by Java's Runtime.exec(), which doesn't handle embedded double quotes in command line arguments appropriately for this use case. To pass the command line to Win32's CreateProcess function, which takes the command line as a single string, Java needs to concatenate t

RE: Apply argument wrapping with msiexec

2010-11-10 Thread Bailey, Darragh
> -Original Message- > From: Stefan Bodewig [mailto:bode...@apache.org] > Sent: 10 November 2010 16:14 > To: user@ant.apache.org > Subject: Re: Apply argument wrapping with msiexec > > On 2010-11-09, Bailey, Darragh wrote: > > > I have the following target in a project > > > > >

Re: ant.java.version set incorrectly

2010-11-10 Thread Eric Smith
On Wed, Nov 10, 2010 at 05:09:39PM +0100, Stefan Bodewig wrote: > > Ant doesn't trust system properties and sets ant.java.version based on > the classes it can load. Ant thinks it is running on JDK 1.6 if it can > find java.util.ServiceLoader which shouldn't be present if gcj really > only suppor

Re: ant.java.version set incorrectly

2010-11-10 Thread Stefan Bodewig
On 2010-11-10, Eric Smith wrote: > I am using gcj as my only jdk, so I am limited to using java > 1.5. After installing ant-1.8.1, however, I am having problems > building packages with ant because ant.java.version is set to 1.6. I > have never had a jdk that supports java 1.6 on my system, so why

Re: Apply argument wrapping with msiexec

2010-11-10 Thread Stefan Bodewig
On 2010-11-09, Bailey, Darragh wrote: > I have the following target in a project > > > > > > > > > > > > Basically the problem appears to be with the TARGETDIR line. If I > remove that line, then the msiexec command will run just

Uninstalling with ANT's RPM target

2010-11-10 Thread Fawad Ali
Hi All, Can we uninstall a package from an ant's script. If yes, how? I want to have two tasks in ant file 1)ant install from spec file *( That is easy)* 2)Ant uninstall by simply running the Linux's *rpm -e package *command. Now how can I achieve this with ANT? -- Regards, S. Fawad Ali Shah Sof

RE: Uninstalling with ANT's RPM target

2010-11-10 Thread Ludwig, Michael
> I want to have > two tasks in ant file > 1)ant install from spec file *( That is easy)* > 2)Ant uninstall by simply running the Linux's *rpm -e package > *command. Take a look at the optional task and the help for your rpm command, or some examples like here: http://www.thegeekstuff.com/2010