RE: How to store date time as a long value into a text file.

2008-05-02 Thread Ravi Roy
Sorry for dely in replying... I tried tstamp ant task, but it gives me the date and time in the format I specify in pattern, while I wanted a long value produced by System.currentTimeMillis() in the created file. Thanks for your response. Regards Ravi. -Original Message- From: Scot P. Fl

Re: Programmatically create a fileset and reference

2008-05-02 Thread Scot P. Floess
Interesting... Well if you wouldn't mind...keep me up-to-date on what you discover... Thanks! Flossy Jeremy Weber wrote: Yeah, I have tweaked it a bit to support some stuff it didnt out of the box, it seems to work okay. Everything stays in the jar file but its executable. I think they re

Re: Programmatically create a fileset and reference

2008-05-02 Thread Jeremy Weber
Yeah, I have tweaked it a bit to support some stuff it didnt out of the box, it seems to work okay. Everything stays in the jar file but its executable. I think they real problem is filelist, and that it delimits by spaces. Probably a bug there. I am going to see if I can patch the filelist

Re: Programmatically create a fileset and reference

2008-05-02 Thread Scot P. Floess
I just (really quickly) looked at the link. That's pretty darn cool. I hadn't heard of that project :) So, are you unpacking the jar file first? I thought Ant dealt with the Windows file system (and spaces) correctly? I don't run Windows at all so this is all an assumption on my part ;)

Re: Programmatically create a fileset and reference

2008-05-02 Thread Jeremy Weber
I guess I could try convert the value of the property, but I'd rather not. Yes, all build artifacts are actually in a jar file. Its basically, a customized version of http://antinstaller.sourceforge.net/. I am still thinking that creating my own custom task would be helpful, just cant figure

Re: Programmatically create a fileset and reference

2008-05-02 Thread Scot P. Floess
I see... Have you considered using escape characters where the spaces are in the property? So, curious, you are using build.xml's in a jar file? Or, do you extract from the jar file and then use those files? Jeremy Weber wrote: Sure does, filelist accepts a set of files delimited by a space.

Re: Programmatically create a fileset and reference

2008-05-02 Thread Jeremy Weber
Sure does, filelist accepts a set of files delimited by a space... So when a path has a space it doesnt behave. Have used ant-contrib plenty of times in the past, buts that not an option. The kicker is this isnt a normal ant environment, but actually all the build files, etc are in a jar whe

Re: How to use Ivy to publish artifacts to archiva or arifactory?

2008-05-02 Thread Hans Dockter
On May 2, 2008, at 3:38 PM, Hans Dockter wrote: On May 1, 2008, at 10:47 PM, Gilles Scokart wrote: I think you have to use webdav to publish to archiva. Unfortunately, we have some issues with our webdav support [1]. (By the way, I would be curious to know how the webdav access has been i

Re: Programmatically create a fileset and reference

2008-05-02 Thread Scot P. Floess
OK I think I see the problem. It breaks down due to the space? Have you looked at Ant Contrib? They have a task that may help you. It uses delimiters - in this case you can define the delimiter as a comma. You might also want to define in a macrodef (sorry I am a huge huge fan of macrodefs

Re: Programmatically create a fileset and reference

2008-05-02 Thread Jeremy Weber
Not sure that accomplishes what I need to do. The problem I wish to solve is this: I have a property that equates to this: The value of this property is variable. I then have a couple of tasks that perform the following: * * Thi

Encoding isssues Running .sql from java class through ANT

2008-05-02 Thread Kothari, Shivani
Hi, I am executing .sql which has insert statements(with french characters) which requires (UTF/ISo* encoding). This .sql is executed from java class through ANT scripts. In the result ? is inserted in database instead of desired output é. I tried running the same .sql from ant task passing