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

2011-02-17 Thread Mohan
>> If your really really really want to use "new Project()" you should make sure it gets initialized properly by invoking the init() method on your new instance before you call createTask. This suggestion worked for us. Thanks Stefan for the quick response!! -- View this message in context: ht

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

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 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 Mohan
/prod/tools/infra/apache/ant-1.8.2/lib/ant-launcher.jar" -Dant.home="/prod/tools/infra/apache/ant-1.8.2" -Dant.library.dir="/prod/tools/infra/apache/ant-1.8.2/lib" org.apache.tools.ant.launch.Launcher -cp "" I do not see any other version of ant being loaded in t

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

Re: Problems while migrating from ant 1.7.1 to ant 1.8.2

2011-02-14 Thread Mohan
I'm using Proguard 4.5 jar in the Ant lib path. I think that the problem is with including Proguard 4.5 jar. Could you please suggest the solution for this? Thanks, Mohan. -- View this message in context: http://ant.1045680.n5.nabble.com/Problems-while-migrating-from-ant-1-7-1-to-ant-

Re: Problems while migrating from ant 1.7.1 to ant 1.8.2

2011-02-14 Thread Mohan
I have not set either of the environment variables ANT_HOME or CLASSPATH. What could be the reason for this failure? Thanks, Mohan. -- View this message in context: http://ant.1045680.n5.nabble.com/Problems-while-migrating-from-ant-1-7-1-to-ant-1-8-2-tp3325519p3384540.html Sent from the Ant

Problems while migrating from ant 1.7.1 to ant 1.8.2

2011-01-03 Thread Mohan
Could someone help me how to fix this problem? Thanks, Mohan. -- View this message in context: http://ant.1045680.n5.nabble.com/Problems-while-migrating-from-ant-1-7-1-to-ant-1-8-2-tp3325519p3325519.html Sent from the Ant - Users mailing list a

Re: StarTeam ANT tasks

2009-05-05 Thread Mohan Radhakrishnan
That is a problem with access rights. Thanks, Mohan -- View this message in context: http://www.nabble.com/StarTeam-ANT-tasks-tp23389192p23399774.html Sent from the Ant - Users mailing list archive at Nabble.com. - To

StarTeam ANT tasks

2009-05-05 Thread Mohan Radhakrishnan
h. I have a StarTeam client installation. I see this error "You do not have access rights to perform this operation. If you need access, contact your administrator." I am suspecting that this is not a problem with access rights but classpath or path. Mohan -- View this message in c

Waiting for a server to shutdown using waitFor

2007-05-23 Thread Krishna Mohan Attravanam
Hi all, I am using the following tasks within a target that check to see if the servers are shutdown or not? My question is: Is there a deterministic way of finding out if the server has shutdown completely? What if the timeout value is not sufficient ? Any thoughts ? Than

precompile jsps that can be deployed

2006-10-19 Thread Anand Mohan Sravanam
Hi, I need to precompile the jsps and export them to an ear file. The ear file will then be deployed on oracle10g. Could anyone help how to compile the JSP's using ant script. The precompiled JSP code should work on oracle10g thanks & regards, S. An

"dest" attribute of apply task is not working as expected?

2006-06-05 Thread Guttula, Mohan
s the designed reports --- "dir" attribute of "fileset") Could some please let me know if you ran into this issue or where I'm making a mistake? Thanks, Mohan ** This message, including any attachments, contains confide

How to dynamically initialize a property at runtime based on the values of other properties initialized using inside a target?

2006-05-23 Thread Guttula, Mohan
Hello All, I have some properties that I'm initilizing by using task in some targets. I want to dynamically initialize the value of some other property inside other target based on the values from other targets. Is this possible? Thanks,

RE: How to initialize the value of a boolean property based on the output from Custom Java ANT task?

2006-05-03 Thread Guttula, Mohan
alse]). Is there an issue with "if" and "unless" when creating new property with "setNewProperty" method inside the java code? Note: checkout target depends on the labelFrozen target. I'm using ANT 1.6.5. I have attached java class and the build file. Thanks, Moh

How to initialize the value of a boolean property based on the output from Custom Java ANT task?

2006-05-02 Thread Guttula, Mohan
:  [labelStatus] Label Frozen: true   I have attached the java class and build.xml for convenience.   Thanks, Mohan ** This message, including any attachments, contains confidential information intended for a specific individual

RE: Would like to suppress leading spaces in multi-line and

2006-05-01 Thread Guttula, Mohan
Mohan Guttula -Original Message- From: Michael Giroux [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 1:33 PM To: Ant Users List Subject: Would like to suppress leading spaces in multi-line and Given that most ANT

RE: Create a file that contains files in directory

2006-04-21 Thread Guttula, Mohan
The following IVAN's suggestion resolved the issue: ${line.seprator} -Original Message- From: Guttula, Mohan Sent: Friday, April 21, 2006 3:16 PM To: Ant Users List Cc: [EMAIL PROTECTED] Subject: RE: Create a file that contains files in directory --- Snippet

RE: Create a file that contains files in directory

2006-04-21 Thread Guttula, Mohan
mp1/temp1.ind @temp4/temp4.ind @temp2/temp2.trg @temp5/temp5.trg Thanks, Mohan -Original Message- From: Ivan "Rambius" Ivanov [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 9:11 PM To: Ant Users List Subject: RE: Create a file that contains files in directory

RE: Create a file that contains files in directory

2006-04-19 Thread Guttula, Mohan
@temp2/temp2.trg @temp5/temp5.trg @temp3/temp3.seq In the above file, I have to rearrange lines based on the extension. Regards, Mohan -Original Message- From: Ivan "Rambius" Ivanov [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 6:56 PM To: Ant Users List

RE: Create a file that contains files in directory

2006-04-19 Thread Guttula, Mohan
build.xml ${all.files} Regards, Mohan -Original Message- From: Guttula, Mohan Sent: Wednesday, April 19, 2006 3:35 PM To: Ant Users List Subject: RE: Create a file that contains files in directory Hello, didn't resolve the abso

RE: Create a file that contains files in directory

2006-04-19 Thread Guttula, Mohan
Hello, didn't resolve the absolute path issue? Do I need to use some other mapper? Regards, Mohan -Original Message- From: Ivan "Rambius" Ivanov [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 4:58 PM To: Ant Users List Subject: Re: Create a file that co

RE: Multiple JVM

2006-04-18 Thread Guttula, Mohan
machine. Reason for asking you to check the above options: I have run into a weird issue in windows environment with JDK hard coded in the environment variable. No matter what I did on the command prompt, JDK was overwritten with the JDK from System variable "JAVA_HOME". I'm

Create a file that contains files in directory

2006-04-17 Thread Guttula, Mohan
file "temp4.fn" I need to generate a file which contains the following contents: temp/temp.tab temp1/temp1.ind temp2/temp2.trg temp3/temp3.seq temp4/temp4.fn Note: Contents of "temp" folder changes during each checkout from Source code control. Thank

RE: Help with ftp

2006-04-12 Thread Guttula, Mohan
task working without this jar (commons-net-1.4.1.jar) form the above links. Thanks, Mohan -Original Message- From: ilango [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 12:54 PM To: Ant Users List Cc: [EMAIL PROTECTED] Subject: Re: Help with ftp Hi Rakesh Could you tell me what

RE: Hi frm Kishore

2006-04-11 Thread Guttula, Mohan
task following instructions from http://ant.apache.org/manual/develop.html#set-magic and http://www.onjava.com/pub/a/onjava/2004/06/02/anttask.html Thanks, Mohan Guttula From: Kishore.G [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 11, 2006 1:20 PM To: Guttula, Mo

RE: Looping through a file contents and dynamically add for each line in the file to task

2006-04-11 Thread Guttula, Mohan
Hello Jon, Thanks for all your help. Your solution resolved my issue. Question: What is the industry standard for Database scripts?(i.e., either using "SQL" ANT task or using sqlplus.exe inside ant through "Apply/Exec" tasks)? Thanks, Mohan -Original Message- Fr

RE: Looping through a file contents and dynamically add for each line in the file to task

2006-04-08 Thread Guttula, Mohan
Hello Jan, How do I create the project.xml? Is this Manual Process or do you want me to create java class that will dynamically create the project.xml? As mentioned earlier, I have to call SQL task once and compile all the files in "sample.sql". Thanks, Mohan -Original Message

RE: Looping through a file contents and dynamically add for each line in the file to task

2006-04-07 Thread Guttula, Mohan
Thank you for your Response. Part of my requirement is to call the "SQL" task only once and add as many "" elements as the number of lines in "sample.sql". Note: "Sample.sql" contains other sql file names as mentioned in my first e-mail. Mohan

Looping through a file contents and dynamically add for each line in the file to task

2006-04-06 Thread Guttula, Mohan
r way to achieve what I want using some other task? Thanks, Mohan ** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are

RE: Dynamically increase the number of arguments to EXEC task based on the number and name of the file(s) in a directory.

2006-04-06 Thread Guttula, Mohan
Sphere Mosiac WebSphere Brandmark "Guttula, Mohan" <[EMAIL PROTECTED]> wrote on 04/06/2006 09:37:01 AM: > Hello All, > > > > Requirement: Dynamically increase the number of arguments to EXEC task > based on the number and name of the file in a directory. &g

Dynamically increase the number of arguments to EXEC task based on the number and name of the file(s) in a directory.

2006-04-06 Thread Guttula, Mohan
how I can achieve my requirement. (Should I use marcodef? If so how?) Any help is highly appreciated. Thanks, Mohan ** This message, including any attachments, contains confidential information intended for a specific indi

Process fork failed - Help

2005-02-28 Thread Mohan Radhakrishnan
:1062) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) Thanks for the help, Mohan

Process fork failed - Help

2005-02-28 Thread Mohan Radhakrishnan
(Class.java:190) [junit] Test com.blockbuster.revenue.allocation.utility.Test FAILED Thanks, Mohan __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yah