Re: Invoking Ant with Runtime.exec()

2008-03-25 Thread supareno
raju, it is more a java question than ant question you could googling on 'using runtime exec ant bat' and 'runtime exec and parameters'... supareno Hi, i have a file called test.bat within which i have ant command: test.bat: - echo %foo% help echo %ID% help ant -f ./build.xml main

Re: Issues with building custom Ant task and using it in same build?

2008-03-25 Thread Peter Reilly
On Tue, Mar 25, 2008 at 10:50 PM, Karr, David <[EMAIL PROTECTED]> wrote: > I have to write a custom Ant task to get some detailed data out of > Perforce into some properties, and then I need to use those properties > in following steps of a build. Are there any difficulties in having my > build

Issues with building custom Ant task and using it in same build?

2008-03-25 Thread Karr, David
I have to write a custom Ant task to get some detailed data out of Perforce into some properties, and then I need to use those properties in following steps of a build. Are there any difficulties in having my build first compile the Ant task, and then use it in the further steps of the build? Can

Re: ant sql doesn't recognize the database server name with back slash?

2008-03-25 Thread Rishi Gogia
in case of a unix env, URL should be used with forward slashes ('/') instead of backslashes and in case any string needs to be used backslashes, they need to accompany another backslash. this is because backslash acts as a escape sequence character (remember \n) so to avoid such a situation,

Re: ant sql doesn't recognize the database server name with back slash?

2008-03-25 Thread Steve Loughran
Chaohua Wang wrote: I have figured out, I didn't use name instance, instead port number, works fine now. excellent! -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 10:25 AM To: Ant Users List Subject: Re: ant sql doesn't recognize th

RE: ant sql doesn't recognize the database server name with back slash?

2008-03-25 Thread Chaohua Wang
I have figured out, I didn't use name instance, instead port number, works fine now. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 10:25 AM To: Ant Users List Subject: Re: ant sql doesn't recognize the database server name with back slash

RE: ant sql doesn't recognize the database server name with back slash?

2008-03-25 Thread Chaohua Wang
Thank you, '10.23.23.2\sql5t9' sql5t9 is a name instance, If I use forward slash, sql5t9 will be treated as a Database name, instead of name instance. In this way, 10.23.23.2 can be recognized, but it is not '10.23.23.2\sql5t9', so I will get login failed issue. Do I need to track database? I can u

Re: ant sql doesn't recognize the database server name with back slash?

2008-03-25 Thread Steve Loughran
Chaohua Wang wrote: Hi Folks, I am using jdbc driver to connect database. I have 2 database. The url is like this 10.23.23.1, another one is 10.23.23.2\sql5t9. I am using jtds drvie to connect: jdbc:jtds:sqlserver://10.23.23.1 it works fine. But for 10.23.23.2\sql5t9, is not working. message

ant sql doesn't recognize the database server name with back slash?

2008-03-25 Thread Chaohua Wang
Hi Folks, I am using jdbc driver to connect database. I have 2 database. The url is like this 10.23.23.1, another one is 10.23.23.2\sql5t9. I am using jtds drvie to connect: jdbc:jtds:sqlserver://10.23.23.1 it works fine. But for 10.23.23.2\sql5t9, is not working. message shows: java.sql.SQLEx

Custom Task: Property File argument

2008-03-25 Thread Hache, Martin
I'm writing a Custom Ant Task that needs to act on the properties in a Property File (and just in that property file). So I'm passing my custom task the name of this Property file. I use a java.io.File and a java.io.Properties collection to load this file but I've just now realized that variable

Re: JavaC and sourcepath

2008-03-25 Thread Raja Nagendra Kumar
Thank you Stev for the pointers.. Let me create new taks with the code snippets from depends filesets etc.. Regards, Nagendra Steve Loughran wrote: > > Raja Nagendra Kumar wrote: >> We are using lot of opensource library code, which also gets complied >> from >> source code. However, my code m

Using ant in java

2008-03-25 Thread Denis.Sitnitsa
Hello everybody! I'm using ant in java to launch java application, to compile sources and to pack the result in jar file. How can I catch the result of launching java application, for example? I need to show it on UI. I have found setError, setOutput methods with the File parameter, but I'm not s

Invoking Ant with Runtime.exec()

2008-03-25 Thread raju
Hi, i have a file called test.bat within which i have ant command: test.bat: - echo %foo% help echo %ID% help ant -f ./build.xml main I am trying to invoke ant from a java program: Process p = Runtime.getRuntime().exec("./test.bat", new String[]{"foo=bar","ID=38"}); Ant comman

Re: xslt out of memory

2008-03-25 Thread Steve Loughran
Z W wrote: Martin I'm not sure what XQuery does and have no time to look into it to learn to use it. Remi I don't think I have recursion problem. Folks, How to I increase the heap size in the Windows Ant bat file ? I cant seem to find it. How does one also include the stack size in Windows Ant ?

Re: JavaC and sourcepath

2008-03-25 Thread Steve Loughran
Raja Nagendra Kumar wrote: We are using lot of opensource library code, which also gets complied from source code. However, my code many not use all the sources of opensource library. This way, me copying all the opensource source always is not recommended. For this reason only, we wanted to sele

Re: How does Ant accept 2 input files such that xsl could differentiate them ?

2008-03-25 Thread James Fuller
Hello, you could just use XSLT native functionality for this type of thing; I would imagine using the document() function. if u need to procedurally pass in file names, just pass in via xsl:params (xslt task can be configured to pass in params). of course I am assuming you are working with xml f

Re: How does Ant accept 2 input files such that xsl could differentiate them ?

2008-03-25 Thread Krzysieq
Hi, Can You show some of the bigger picture? From what I read, the only thing that comes to my mind is that the xslt task, being a file-based task, accepts nested fileset elements. In those, You can specify exactly which files to treat with which xsl stylesheet. Am I even close to understanding wh