RE: Modify file inside war

2009-03-27 Thread Chun Ji
Well, sometimes it does happen, such as one group is doing the coding on Window platform and the release work has been done on Unix/Linux. There is very difficult to say whose fault it is. -cji -Original Message- From: David Weintraub [mailto:qazw...@gmail.com] Sent: Friday, March 2

RE: Make copy task fail if any destination file already exists?

2009-01-27 Thread Chun Ji
xists? Okay, the problem is, these files can be overwritten (they won't be locked by the OS for example). I need to make sure that: - Ant don't overwrite them - An error is triggered, to alert the user. 2009/1/27 Chun Ji : > > It happens if these existing files can not be over

RE: Make copy task fail if any destination file already exists?

2009-01-27 Thread Chun Ji
It happens if these existing files can not be overwritten. -Charlie -Original Message- From: Yves Dessertine [mailto:yvesd.pub...@gmail.com] Sent: Tuesday, January 27, 2009 9:38 AM To: Ant Users List Subject: Re: Make copy task fail if any destination file already exists? I'll explai

email question

2009-01-02 Thread Chun Ji
Hi follows, I have an ant script that runs perfectly on a linux machine. The last step of that script is to send out the output by email. The ANT script I have is: " ... ". Now my boss told me that SHE is going to copy everything to a new staging machine to run the script. Do you s

RE: xslt out of memory

2008-03-20 Thread Chun Ji
This type of question has nothing to do with ANT. Go to: http://www.mulberrytech.com/xsl/xsl-list, and post your xslt question in that news group. Lots of XML/XSLT Geeks( including Michael Kay) answer all type of questions over there every day. I am sure yours can be solved right away. -c

RE: Picking up files from 2 separate directories with Ant ?

2008-03-14 Thread Chun Ji
What exactly you want to do ? Create 2 new files or open some existing files to do some extra things ? -c -Original Message- From: Z W [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 11:39 AM To: Ant Users List Subject: Picking up files from 2 separate directories with Ant ?

RE: csv to html via xslt or xslt2 task ?

2008-03-11 Thread Chun Ji
[mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 3:37 AM To: Ant Users List Subject: Re: csv to html via xslt or xslt2 task ? Chun Ji wrote: > How about "Fixed to XML (XSLT 2.0 only) " > > The difference from yours is: delimiter is ",", instead of spac

RE: csv to html via xslt or xslt2 task ?

2008-03-10 Thread Chun Ji
ml via xslt or xslt2 task ? Chun Ji wrote: > Hi there, > The answer is "YES". > If you still have this problem, take a look at here: > http://www.xmlplease.com/xsltcases. > > > > -cji -they seem to go the other way, from XML to

RE: csv to html via xslt or xslt2 task ?

2008-03-07 Thread Chun Ji
Hi there, The answer is "YES". If you still have this problem, take a look at here: http://www.xmlplease.com/xsltcases. -cji -Original Message- From: Z W [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 3:17 PM To: Ant Users List Subject: csv to html via xslt or xslt2 tas

RE: SQL task and resource collections ...

2008-02-26 Thread Chun Ji
How about you create a new sql file that calls the rest of your Sqls , and just here is your simple ant target: That is how my code works. -c -Original Message- From: John Shott [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 26, 2008 1:32 PM To: Ant Users List Subject: Re: SQ

RE: ant_home problem

2008-02-24 Thread Chun Ji
What happen if you type " which ant", is it point to "/usr/local/ant-1.6.4/bin/ant" ? If yes, you are using the "ant", which is under /usr/local/ant-1.6.4, but of the version 1.6.2. Otherwise, you may reset you path, such as export PATH=${ANT_HOME}/bin:${PATH} -c -Original Message

an input for ant arg.

2008-01-09 Thread Chun Ji
Hi all, I have a file: "input.sql" which contans a line as: " ... where keyp_clientid in (7,32,113,33) --Second Wave .. ", And I need this " (7, 32, 113, 33)" as an input string to excute a java class, and that is command line I use on my linux box, and it works, " java Test `grep "^wher

String replace.

2007-08-22 Thread Chun Ji
Hi, Does someone know how to replace a string such as "<" to be "<" in a html file by ANT. The target that I have created in my build.xml is : " ... .. ", but I see such errors: " The value of attribute "replace" associated with an element type "replaceregex" must not

RE: How to convert back slashes to forward slashes

2007-08-09 Thread Chun Ji
If this works for you, maybe you can add an "exec" in your ant xml file. " perl -pi -e 's/\\//g' " -c -Original Message- From: broken connection [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 10:40 AM To: Ant Users List Subject: How to convert back slashes to forward

RE: Invoking sql files in ANT.

2007-07-20 Thread Chun Ji
-Original Message- From: Priest, James (NIH/NIEHS) [C] [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 4:50 AM To: Ant Users List Subject: RE: Invoking sql files in ANT. Importance: Low > -Original Message- > From: Chun Ji [mailto:[EMAIL PROTECTED] > I was

Invoking sql files in ANT.

2007-07-19 Thread Chun Ji
Hi all, I was trying to call some sql files from ANT, and it keeps giving me some "ORA-00922, ORA-00900.." errors. I don't think there is anything special in the ant/build.xml, but is because something in the sql file that ANT/SQL can not recognize, such as: " set define off ... spool exe

RE: How we will check the jsp with Ant script

2007-06-08 Thread Chun Ji
If I have lots of jsp files, and they have some fancy dependence of each other, I would not use "tomcat" or "jboss" to do the precompile, because it will give you nothing, but pain. Chun -Original Message- From: Saurabh Dave [mailto:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007

RE: Overwrite files at the remote site.

2007-05-15 Thread Chun Ji
-Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 15, 2007 2:44 AM To: Ant Users List Subject: Re: Overwrite files at the remote site. Importance: Low Chun Ji wrote: > Hi there, > I am using the "FTP" task in ANT to update a gro

RE: Overwrite files at the remote site.

2007-05-14 Thread Chun Ji
ubject: Re: Overwrite files at the remote site. Importance: Low how about sshexec? http://ant.apache.org/manual/OptionalTasks/sshexec.html On 5/14/07, Chun Ji <[EMAIL PROTECTED]> wrote: > > > Hi there, > I am using the "FTP" task in ANT to update a group of files a

Overwrite files at the remote site.

2007-05-14 Thread Chun Ji
Hi there, I am using the "FTP" task in ANT to update a group of files at a remote site, but sometimes, some files at the remote site are read-only, and my ANT will fail because of that. Is that any way I can do a chmod of these read-only files. thanks a lot Chun ---

classpath value have been ignored.

2007-04-27 Thread Chun Ji
I have such things in my build.xml, " ", which is supposed to do a jsp precompile work. ( it is suggested by the tomcat 5.5). And I thought when I run "ant jspc", it will include the classpath value that I have set for "j

property value setting

2007-03-12 Thread Chun Ji
I have a build.xml file in which there is a property value "PW90". And this value is initialized through the command line, such as: ant -f build.xml -DPW90="...". However, I just realize that 95% of time, the value is same. So I am just wondering if I could set a default value for this "PW90"

Invoking Ant Procedures from tomcat ?

2007-03-01 Thread Chun Ji
We have a project going on, which involves 20 developers, 2000+ java files, 3,000+ junit test cases and ORACLE database. Every morning, there will be a cron job running ant to do the build and run these junit test cases. It also sends the results to everyone. Our manager is looking for 0% f

RE: SQL file in Ant 1.7

2007-02-22 Thread Chun Ji
-Original Message- From: Karl Heinz Marbaise [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 12:02 PM To: Ant Users List Subject: Re: SQL file in Ant 1.7 Importance: Low Hello, > As far as I can see, when this target is being executed, it gives me messages > such as: > "

SQL file in Ant 1.7

2007-02-22 Thread Chun Ji
Here is a target I created to execute some sql files in Ant 1.7 " ". As far as I can see, when this target is being executed, it gives me messages such as: " 100 SQL statements executed successfully ... ", But d

RE: Sending email with an attachment

2007-02-15 Thread Chun Ji
I have find out why, " DEPRECATED - The mimemail task is deprecated. Use the mail task instead. " And here is my new target. " " CJ -Original Message- From: Chun Ji [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 10:19 AM To: An

Sending email with an attachment

2007-02-15 Thread Chun Ji
Here is a target in my build.xml file, that is to send email with an attachment file. It works very well, when I was using ant 1.6.5. But once I have updated to ant 1.7, that part does not working any more. Does someone know why? " " And here is the error messsage: " send_emai

RE: Question regarding -Xlint:unchecked

2006-12-15 Thread Chun Ji
hen it is explicitly specified . So the value ${src.dir} has different value for each build.xml file. Chun -Original Message- From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] Sent: Sat 12/16/2006 4:12 AM To: Ant Users List Subject: Re: Question regarding -Xlint:unchecked He

Question regarding -Xlint:unchecked

2006-12-15 Thread Chun Ji
first build.xml, I get a "clean" build. Does someone know why ? thanks, chun Ji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Many Input xml for one html output.

2006-12-07 Thread Chun Ji
Hello, I try to use the to do a transformation. I have several input XML files, and want to create only one output HTML file. Does someone know how to do it? I am using ant 1.6.5 on linux. thanks, Chun - To unsubscribe

RE: Ant exec find -exec problem

2006-11-15 Thread Chun Ji
You may not put "find" in the part. -Original Message- From: Elaine Fortin [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 11:21 AM To: user@ant.apache.org Subject: Ant exec find -exec problem Importance: Low I am trying to create an Ant script to move files that are 10

RE: Ant "available" task

2006-11-07 Thread Chun Ji
uot;available" task Importance: Low Hello Chun, a class cannot be loaded if : - the class itself is not in the classpath, - a parent class or interface of the class is not in the classpath, - a field of the class is not in the classpath, so have a look at the source code of the class which can

Ant "available" task

2006-11-06 Thread Chun Ji
Hi all, does "Available" only works for some selected packages only ? I want to set a property depends on the availablity of a class. No matter what I did, it always tells me that the class could not be loaded. But this task works perfect for other packages, of the same classpath. Does someon

RE: Build jar files that contain other jar files

2006-10-31 Thread Chun Ji
If you do so, you may violate the write-copy rule. How about create an "ear" or "war" file, depends on your application. Here is the structure of a war file looks like " WEB-INF/ WEB-INF/lib/ WEB-INF/lib/antlr-2.7.5.jar WEB-INF/lib/... WEB-INF/classes/ WEB-INF/classes/events/Event.class WEB-I

mimemail question

2006-10-23 Thread Chun Ji
I have set a mimemail target, in my build.xml file, which sends out the test results in a html format file. This morning, that target does not work any more. I believe it was our IT people that reset our mail server or port number during the weekend, which cause my target faiure. The bad thing

RE: regexpmapper question

2006-10-19 Thread Chun Ji
contents into dest.dir. I only want the contents of foo-0.1.2-bar moved into dest.dir. , Josh. > -Original Message- > From: Chun Ji [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 19, 2006 3:51 PM > To: Ant Users List > Subject: RE: regexpmapper question &g

RE: regexpmapper question

2006-10-19 Thread Chun Ji
how about : -Original Message- From: Fenlason, Josh [mailto:[EMAIL PROTECTED] Sent: Thursday, October 19, 2006 1:15 PM To: user@ant.apache.org Subject: regexpmapper question Importance: Low I'm trying to move some files using regexpmapper and I'm not having much luck, probably

RE: path performance

2006-10-17 Thread Chun Ji
Have you tried "testNG", it may load all these jar files once, for all the test cases. and it can be executed through ant and lots of other features. -cji -Original Message- From: Kevin Cline [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 3:16 PM To: user@ant.apache.org Sub

RE: Question

2006-09-11 Thread Chun Ji
I sync to source sometimes there's new interfaces. These interfaces end up missing in the instrumented classes. I'm trying to avoid adding a new for each interface. -Original Message- From: Chun Ji [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 11:58 AM To: Ant Use

RE: Question

2006-09-07 Thread Chun Ji
If you just want to copy your interface classes to your "instrumented" directory, it should be very easy for ant to handle. I think a should be enough. If you want Ant to analysis the test coverage of your interface files, I have no idea. -cji -Original Message- From: Bret Ku

RE: Javac or Ant issue ?

2006-08-09 Thread Chun Ji
es are not specified as source files for compilation and selected by JavaC on its own, ANT would not know about them. The situation can happen, if all selected files compiled fine, but additional files (chosen for compilation by JavaC itself) did not. - Alexey. Chun Ji wrote: > I have noti

Javac or Ant issue ?

2006-08-09 Thread Chun Ji
I have noticed some very strange behaviour when I try to compile my java code. Say I have some java files to be filed, A,B,C,D,E,F,G... When I was doing a clean compiling, it gives me error that File C, D failed because some errors, which is true. But when I do the compile(not a clean compile)

RE: Custom Task that exports a property

2006-08-08 Thread Chun Ji
google "antcallback" -cji -Original Message- From: Tzabari, Gili [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 11:56 AM To: Ant Users List Subject: Custom Task that exports a property Importance: Low Hi, I read the tutorial on how to create new Tasks but I am unsure

email a html file

2006-07-28 Thread Chun Ji
I want to insert a html file in my email, not an attachment. Does someone know how to do it in ant. -CJ -Original Message- From: Jamie Jackson [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 11:31 AM To: Ant Users List Subject: Re: Trying to do things the "Ant way" Importance: L

RE: javac multiple packages

2006-07-19 Thread Chun Ji
I have just tried, no difference. My jdk version is : jdk1.5.0_01. My Ant version is : 1.6.2. My OS is: Linux. -CJ -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 19, 2006 2:45 PM To: Chun Ji Cc: Ant Users List Subject: Re: javac multiple

javac multiple packages

2006-07-19 Thread Chun Ji
Sorry if I posted it second time, but I am still looking for a better way to solve the problem. I am working on a project that has 10 different java packages, and these java packages have no dependence on each other. To compile these packages, I may create 10 targets in the build.xml and co

RE: build sub-source tree in the order I specified.

2006-07-05 Thread Chun Ji
(Jeff) Care <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer WebSphere Mosiac WebSphere Brandmark "Chun Ji" <[EMAIL PROTECTED]> wrote on 07/05/2006 01:20:34 PM: > Hi > I can edit a

build sub-source tree in the order I specified.

2006-07-05 Thread Chun Ji
Hi I can edit a "list.txt" files as follows " com/manager/useraccount/** com/contractor/useraccount/** com/supplier/useraccount/** com/users/useraccount/** ... " And put such target in the build.xml " " In that way, the ANT will compile the files under each directory I specified one

Help with this build.xml

2006-06-30 Thread Chun Ji
Question: I want to put some files in a fileset, so that I can build them one by one, such as ... but somehow in ant, "Javac" does not acccept this "", do you know a way to work arond. cj -Original Message- From: Dominique De