Re: path problems in build.xml

2009-09-09 Thread Avlesh Singh
The classpathref="axis2.classpath" attribute you have used for the javac task, needs to be defined prior to using it. Cheers Avlesh On Wed, Sep 9, 2009 at 9:34 PM, veena pandit wrote: > I have the following in my build.xml, but it complains about an import: > * > > import* org.apache.axis2.uti

Re: How to run java source code in ant target

2009-09-04 Thread Avlesh Singh
Looking for this? - http://ant.apache.org/manual/OptionalTasks/script.html Cheers Avlesh On Fri, Sep 4, 2009 at 1:51 PM, Gao Lin wrote: > HI: > > Is there an existed ant target to execute plain java source code? > > I need to run one java statement before junit target, I don`t want > to creat

Re: Latest Ant Contrib - AntWebTasks

2009-08-30 Thread Avlesh Singh
>compress="true"> > > > > > > to="/mysite/css/$1.css?random=%{version-file-txt}"/> > > to="/js/(.*)-%{version-file-txt}.js/> > > > > ... > >

Latest Ant Contrib - AntWebTasks

2009-08-30 Thread Avlesh Singh
I have added some zing to the existing WAR task and made it do a lot more with this contrib - http://code.google.com/p/ant-web-tasks/ I would love to hear from everyone - Ant users, developers. Cheers Avlesh

Re: Help needed regarding Java task

2009-08-26 Thread Avlesh Singh
. I want a declare variable and increment it's > value according the output of the java programe. > Is there a way to achieve that. Will I have to include a script in the > build file to achive that. > > www.nadunh.blogspot.com > > > > > _

Re: Help needed regarding Java task

2009-08-26 Thread Avlesh Singh
See, if this usage helps: This is being used in the following manner - "ant search -Dkeyword=obama Cheers Avlesh On Thu, Aug 27, 2009 at 8:20 AM, Nadun Herath wrote: > I am new to apache Ant. > > Some part of my build.xml is like this. > > append

Re: Patch task

2009-08-09 Thread Avlesh Singh
Thanks Michael! Cheers Avlesh On Sat, Aug 8, 2009 at 8:21 PM, Michael Ludwig wrote: > Avlesh Singh schrieb am 06.08.2009 um 14:46:42 (+0530): > > Can I make the patch task work on windows? > > http://ant.apache.org/manual/CoreTasks/patch.html > > From this manual entry it

Re: Need Suggestion in build.properties

2009-08-06 Thread Avlesh Singh
> > I think someone has already suggested you to get rid of the dot ".", before the build.properties file name above. PS: Mailing this question only to the user list should have been just as fine. Cheers Avlesh On Thu, Aug 6, 2009 at 12:01 PM, Rajesh Kumar (IN4774) < rajesh_kum...@mindtree.com

Patch task

2009-08-06 Thread Avlesh Singh
Can I make the patch task work on windows? Cheers Avlesh

Re: Process File?

2009-08-05 Thread Avlesh Singh
Well, no text file be read and processed in this manner. However, you can always create a JAVA property file, and have key value pairs which you can use inside ANT targets. and, your dependency properties might look like this - jar_1 = my-dependency-jar-1.jar jar_2 = my-dependency-

Re: Run / Launch a java application with ANT

2009-08-04 Thread Avlesh Singh
> > I want to create a big script for update data from a CVS repository and > alter update the database and load data into it and do it in only one > object. > 1. Use the CVS task to perform an update. ( http://ant.apache.org/manual/CoreTasks/cvs.html) 2. Use the SQL task for updates and

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-24 Thread Avlesh Singh
gt; (Groovy) to build on Gentoo Linux, so the only thing I can / should > modify > > is the buildfile. Is there a way to tell the Java code that will be run > > inside the task that the current system property "user.home" is set to > "bar" > > ? > >

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Avlesh Singh
agically available via the Java system property... > > > > > > On Thu, 23 Jul 2009, Scot P. Floess wrote: > > > > > >> Well, user.home is a Java system property. I'm guessing the intent is > to > >> change that system property internal to

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Avlesh Singh
If you are trying to read the environment variable "user.home", this is how you need to it: Cheers Avlesh On Thu, Jul 23, 2009 at 8:18 PM, Scot P. Floess wrote: > > Are you trying to set it within your build.xml - like so: > > > > If so, I don't think that is going to work... > > For exampl

Re: help to find not replaced variables

2009-07-22 Thread Avlesh Singh
Cygwin (http://www.cygwin.com/) will make your windows machine "powerful" :) Cheers Avlesh 2009/7/23 JĂșlio Cesar Bueno Cotta > Thanks for the awnser, but it need to run in windows machines too. > I wll take a look in your tip. > > 2009/7/22 Avlesh Singh > > >

Re: help to find not replaced variables

2009-07-22 Thread Avlesh Singh
You basically need to find (or grep) all occurrences of @(.*)@ in your files, once the replace task was performed. Right? If yes, I can think of two solutions: 1. Use a Antelope's grep task. http://antelope.tigris.org/nonav/docs/manual/bk03ch22.html 2. Call an exec task (http://ant.apache

Re: Use ANT to stop / start a java service wrapper (JBoss)

2009-07-20 Thread Avlesh Singh
Well, Ant can invoke shell scripts and commands. In your case it would possibly be invoking the JBoss's stop.sh, followed by calling an Ant target that moves your WAR into a specified location and finally invoke the run.sh script for starting the JBoss server. Look at Ant's task here - http://ant

Re: How to enable compression in SSH/SCP task?

2009-07-20 Thread Avlesh Singh
> > I would like to know if it is possible to enable compression on SCP task? > If it is, how? > AFAIK, the compression option is currently not supported in the scp task. Using the old school exec task in this manner - , might be a quick workaround. If this is currently not possible, where and how

Re: copy task and file name case problem

2009-07-15 Thread Avlesh Singh
nges to myjavaclass.java. > > ty > > > > Avlesh Singh wrote: > > > >> > >> What is happening is the java files when they get copied to the target > >> directory lose the casesensitive filename ... > > > > > > I could not understand thi

Re: copy task and file name case problem

2009-07-15 Thread Avlesh Singh
> > What is happening is the java files when they get copied to the target > directory lose the casesensitive filename ... I could not understand this. Do you mean to say that *.java files are getting copied but not the *.JAVA files? If yes, then that might happen depending on your underlying ope

Re: Manifest.MF - classpath is in wrong format when generated programmatically.

2009-06-29 Thread Avlesh Singh
tionality to break; Class-Path that is set if it > cannot be read - is being set incorrectly , hence I call it a bug. > > On Mon, Jun 29, 2009 at 12:58 AM, Avlesh Singh wrote: > > > Here is what the jar specification has to say on manifest's class-path > > attrib

Re: Manifest.MF - classpath is in wrong format when generated programmatically.

2009-06-29 Thread Avlesh Singh
Here is what the jar specification has to say on manifest's class-path attribute - The value of this attribute specifies the relative URLs of the extensions or > libraries that this application or extension needs. URLs are separated by > one or more spaces. The application or extension class loade

Re: about scriptdef

2009-06-17 Thread Avlesh Singh
This might help - http://www.sitepen.com/blog/2001/09/25/javascript-and-ant/ You can use simple javascript for control structure in your case. Cheers Avlesh 2009/6/16 China Creatxr > > > > >

Re: Generics and compilation problems

2009-06-15 Thread Avlesh Singh
Stack trace would help. Cheers Avlesh On Mon, Jun 15, 2009 at 3:01 PM, Lorenzo Carnevale < lorenzo.carnev...@innovery.it> wrote: > Hello everybody > I have to create a deployment script for a J2EE project. > I have a big problem because, during the "javac" task, the compiler gives > an error due

Re: want to contribute

2009-06-07 Thread Avlesh Singh
Click here

Re: Replacing build variables in my application property files

2009-05-26 Thread Avlesh Singh
ctory will increase your build time by a minute or two. > However, it will eliminate the CVS polling issue, simplify your > build.xml file, and make it easy to implement a "clean" target in your > build.xml. > > On Tue, May 26, 2009 at 3:04 PM, Avlesh Singh wrote: > &

Re: Replacing build variables in my application property files

2009-05-26 Thread Avlesh Singh
operty.name} with their corresponding values in specified files. Are you by any chance doing MS Visual Studio builds? > Nope. Cheers Avlesh On Wed, May 27, 2009 at 12:03 AM, David Weintraub wrote: > On Tue, May 26, 2009 at 1:29 PM, Avlesh Singh wrote: > > My approach is very

Re: Replacing build variables in my application property files

2009-05-26 Thread Avlesh Singh
>overwrite="true" >verbose="${copy.verbose.flag}"> > > > > from="*.template" to="*"/> > > > > > > > On Tue, May 26, 2009 at 12:36 PM, Av

Replacing build variables in my application property files

2009-05-26 Thread Avlesh Singh
I am dealing with a web application which has a huge list of build parameters. This list ranges from multiple data sources, to REST based API Url's, to HTTP connection properties ... I need to replace these values at build time in several confugiration/properties files residing in the applications

Re: Final Target

2009-05-25 Thread Avlesh Singh
Your question is for the logger or the target to save tghe log file to some network location? Cheers Avlesh On Mon, May 25, 2009 at 8:56 PM, Knuplesch, Juergen < juergen.knuple...@icongmbh.de> wrote: > Hello, > > I just implemented a logger that runs a final Target. > In this target I save the l

Progress bar for a custom Ant Task

2009-05-18 Thread Avlesh Singh
I wrote a custom task which needs to display some sort of a progress bar. I have all the necessary data in the Task to display the progress bar. Calls to the log method display output in a new line. Is there a way from within a task, to be able to use the same line for logging the output. Cheers A