AW: How to replace a property defined string with multiple lines

2004-12-07 Thread Daisy Guo
-Original Message- From: Daisy Guo [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:24 PM To: [EMAIL PROTECTED] Subject: How to replace a property defined string with multiple lines Hi, I have a task which given a script and a insert point, it would create a new script base

RE: sshexec Authentication Problem with SuSE 9.1

2004-12-07 Thread Anderson, Rob (Global Trade)
Since you get the same error when you use wrong login and pass, it would appear that Authentication is failing, even when you use the right login and pass. You might try to run sshd on the server in verbose mode on a different port and see what the output is when you try to connect using the ssh

Re: AW: use fileinfo in ant

2004-12-07 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: [SNIP] > I first need to delete all the files in the > directories, then I delete > all the empty folders, here is my code: If you care to go beyond basic Ant, you could use ant-contrib's : (having tied the "ac" ns to the antcontrib antlib) T

Re: AW: use fileinfo in ant

2004-12-07 Thread Ivan Ivanov
Try HTH Ivan --- [EMAIL PROTECTED] wrote: > > Jan, > > Thank you for your help. I was able to solve my > problem :) > > A question remains: My solution seems more > complicated than I would > epect it to be. For instance I want to delete some > directories if they > are older than 7 days. My

AW: use fileinfo in ant

2004-12-07 Thread lists
Jan, Thank you for your help. I was able to solve my problem :) A question remains: My solution seems more complicated than I would epect it to be. For instance I want to delete some directories if they are older than 7 days. My solution looks as follows: I first need to delete all the files in

Re: sshexec Authentication Problem with SuSE 9.1

2004-12-07 Thread Peter Neu
Hello Rob, I only got SuSE 9.1 client/servers in my network. I works on neither of them. I got Jsch 0.1.18. I tried wrong logins which yield to the same result. I really got no idea what could be wrong. Regards, Peter The error is "Auth fail". Perhaps the username or password is incorrect? Try

RE: sshexec Authentication Problem with SuSE 9.1

2004-12-07 Thread Anderson, Rob (Global Trade)
The error is "Auth fail". Perhaps the username or password is incorrect? Try using a username or password that you know is incorrect and see if you get the same error. Also, what version of Jsch are you using? Can you connect to any other hosts with the sshexec task? -Rob Anderson > -Origi

RE: using ant for non-java builds?

2004-12-07 Thread ed . wittmann
I used java interfaces - basically I just invoke the jvm like the batch or shell script would, except that I use ant, and load all the classpath and JVM settings via properties. The server or host-specific stuff I load through an include (which only has 2 or three host specific settings which r

RE: using ant for non-java builds?

2004-12-07 Thread Mark Lybarger
Are you using the bea supplied ant tasks or using java interfaces (weblogic.Server, weblogic.Deployer, etc)? We're currently tracking down some subtle issues (though they are cross platform issues) which helps to identify by using ant. > -Original Message- > From: [EMAIL PROTECTED] [m

Re: using ant for non-java builds?

2004-12-07 Thread ed . wittmann
I happen to use Ant to start BEA weblogic - all my startup parameters, classpaths, etc, are in the file. Makes moving environment variables between different environments really easy. Edward Wittmann --- Derek Haskin <[EMAIL PROTECTED]> wrote: [SNIP] > I am wondering if anyone has any exper

Re: Use Saxon8 in xslt task

2004-12-07 Thread Jacob Kjome
Quoting Robert Soesemann <[EMAIL PROTECTED]>: > I have my Ant pipeline running inside Eclipse. For some xslt tasks I > need to use the optional Saxon 8 XSLT 2.0 processor. > I add the path inside the xslt tasks via classpath and processor > parameter: > > E.g.: > >destdir="

Re: using ant for non-java builds?

2004-12-07 Thread Matt Benson
--- Derek Haskin <[EMAIL PROTECTED]> wrote: [SNIP] > I am wondering if anyone has any experience in > automating builds in ant for > non-java based applications and if they would > recommend using ant or not. I have said it before and I'll say it again. Ant works great for nearly anything includi

RE: using ant for non-java builds?

2004-12-07 Thread Jeff Davidson
I disagree that CruiseControl is most suitable for Java. The truth is CruiseControl has no preference or better support for any language. Its only association with Java is that it, and its plugins, are written in Java. The set of commands available in the CruiseControl config file does not lend i

AW: AW: How to delete files from a zip/jar?

2004-12-07 Thread Jan . Materne
> > jar tf compare.jar | grep \.class | xargs zip -d target.jar > > I changed the command now to this, which is also working: > > > > > > > > => sh -c "zip -d target.jar $(tar -tf compare.jar | grep \.class)" > > the $(...) ha

RE: AW: How to delete files from a zip/jar?

2004-12-07 Thread Andreas.Ebbert
Hi, > [EMAIL PROTECTED] writes: > > >> zip -d target.jar `jar -tf compare.jar | grep \.class` > > > > Nice command :-) > > But the > > `jar -tf compare.jar | grep \.class` > > is evaluated by the shell to get a fileset which is passed to > > the zip command. > > > > So I think you have to s

AW: AW: How to delete files from a zip/jar?

2004-12-07 Thread Jan . Materne
I see, that inside a <*def> task and you´ll get it. Jan > -Ursprüngliche Nachricht- > Von: Peter Reilly [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 7. Dezember 2004 16:46 > An: Ant Users List > Betreff: Re: AW: How to delete files from a zip/jar? > > You could use shellscript from

AW: AW: How to delete files from a zip/jar?

2004-12-07 Thread Jan . Materne
> >> zip -d target.jar `jar -tf compare.jar | grep \.class` > > > > Nice command :-) > > But the > > `jar -tf compare.jar | grep \.class` > > is evaluated by the shell to get a fileset which is passed to > > the zip command. > > > > So I think you have to split that command in two. > > The m

Re: AW: How to delete files from a zip/jar?

2004-12-07 Thread Peter Reilly
You could use shellscript from ant-contrib: echo `ls -rtla` Peter [EMAIL PROTECTED] wrote: zip -d target.jar `jar -tf compare.jar | grep \.class` Nice command :-) But the `jar -tf compare.jar | grep \.class` is evaluated by the shell to get a fileset which is passed to t

Re: AW: How to delete files from a zip/jar?

2004-12-07 Thread Yves
[EMAIL PROTECTED] writes: > 1. (*) text/plain > >> zip -d target.jar `jar -tf compare.jar | grep \.class` > > Nice command :-) > But the > `jar -tf compare.jar | grep \.class` > is evaluated by the shell to get a fileset which is passed to > the zip command. > > So I think you have

Re: find/replace

2004-12-07 Thread Denis N. Antonioli
-BEGIN PGP SIGNED MESSAGE- Hi there is task PropertyTable at . This task lets you iterate over the rows of an excel table. Have a look, it may help you ;-) Best dna On Tue, 7 Dec 2004, Radha Sangal wrote: > Is there

Re: using ant for non-java builds?

2004-12-07 Thread Sharad Jain
You might also want to explore CruiseControl for Automated Build Process (Continuous Integration). *http://cruisecontrol*.sourceforge.net Although, cruisecontrol is most suitable for Java, many people have been quite successful in using it for native compilation of all kinds. HTH, -sharad Hi,

RE: find/replace

2004-12-07 Thread Radha Sangal
Thanks, I would try that ... I have to write a report after that saying these java file names were found/not found in html file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 10:13 AM To: [EMAIL PROTECTED] Subject: AW: find/replace

AW: How to delete files from a zip/jar?

2004-12-07 Thread Jan . Materne
> zip -d target.jar `jar -tf compare.jar | grep \.class` Nice command :-) But the `jar -tf compare.jar | grep \.class` is evaluated by the shell to get a fileset which is passed to the zip command. So I think you have to split that command in two. Jan

RE: How to delete files from a zip/jar?

2004-12-07 Thread Andreas.Ebbert
Hi, my current approach is to execute this command, which should work fine, since ant is used in a linux or cygwin environment: zip -d target.jar `jar -tf compare.jar | grep \.class` I am using this target:

AW: find/replace

2004-12-07 Thread Jan . Materne
> Is there any way in using Ant that we can extract/find/match "strings" > in html/excel file with a list of strings (java file names). Excel is not a fine format to work with ... from the Java point of view. See the notes on the Apache POI project. It would be better to export the XLS to a simpl

find/replace

2004-12-07 Thread Radha Sangal
Is there any way in using Ant that we can extract/find/match "strings" in html/excel file with a list of strings (java file names). I have a big html file and a big excel file. I alwaz need to dig eyes into the excel column first to copy the java file name and then search it in the html file.

Use Saxon8 in xslt task

2004-12-07 Thread Robert Soesemann
I have my Ant pipeline running inside Eclipse. For some xslt tasks I need to use the optional Saxon 8 XSLT 2.0 processor. I add the path inside the xslt tasks via classpath and processor parameter: E.g.: And it just works. But when i run the Ant build outside of Eclipse with another An

RE: using ant for non-java builds?

2004-12-07 Thread Dick, Brian E.
I use ant to build Oracle and Sybase databases. Works great. If your build tools support a command line interface and set a return code on success/failure, then ant will do the job. Most of your early ant development will consist of writing a library of macrodef tasks that wrap the exec and apply

Re: jar management techniques

2004-12-07 Thread Ivan Ivanov
Mark, --- Mark Lybarger <[EMAIL PROTECTED]> wrote: > we have a project that consists of an ejb module and > a web module. the ejb module uses some 3rd party > jars that are made available in the ear via the ejb > jar's manifest.mf. our current practice and setup is > to put all jars into our proje

Re: script task using java

2004-12-07 Thread Peter Reilly
I would suggest you use beanshell instead of javascript. BeanShell is *much* more java like. Also use the "src" attribute to referece a file instead of an inline script, the line numbers will then match up. Any script longer than a couple of lines should be in its own file. (IMO). Peter Keith Hatto

jar management techniques

2004-12-07 Thread Mark Lybarger
we have a project that consists of an ejb module and a web module. the ejb module uses some 3rd party jars that are made available in the ear via the ejb jar's manifest.mf. our current practice and setup is to put all jars into our project sources's WEB-INF/lib folder. when building the ejb modu

Re: sshexec Authentication Problem with SuSE 9.1

2004-12-07 Thread Peter Neu
Hello Rob, the server has OpenSSH 3.8p1-33 installed. The exception looks like this BUILD FAILED C:\Antworker II\Ant-Trial\build.xml:11: com.jcraft.jsch.JSchException: Auth fail at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute(SSHExec.java:211) at org.apache.tools.ant.

RE: script task using java

2004-12-07 Thread Keith Hatton
JavaScript is an untyped language, so you don't give an object a type. You just say content = new StringBuffer(); I'm not sure what happens to the previous two declarations in your script (f and line), but it may not be what you expected. Likewise, you may find your catch(IOException e) should

RE: script task using java

2004-12-07 Thread Rebhan, Gilbert
Hi, thank you all for your quick response ! The comments (and the syntax error !) were only in the mail, not in the code actually - sorry. importPackage(Packages.java.lang); importPackage(Packages.java.util); importPackage(Packages.java.io); BufferedReader

How to delete files from a zip/jar?

2004-12-07 Thread Andreas.Ebbert
Hi, what is the easiest way to remove files from a jar file or zip file? The feature was requested in may last year on this list ( http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED] &msgNo=30613), but I could n

AW: script task using java

2004-12-07 Thread Jan . Materne
You have to use the "Packages"-prefix only if you´re not using classes under the java.*-Packages. So java.io.File would work, but org.apache.tools.ant.util.FileUtils not. See manual to task. I couldnt see the syntax error quickly. If I get syntax errors I comment out the whole block inside the sc

Re: script task using java

2004-12-07 Thread Peter Reilly
Also line 3 means the third line in the script block, not the thired line in the build script. *** -> how to 'cast' to a build exception ? *** throw new BuildException(e); *** -> OK to use coma separated values for one property ? *** yes Peter Keith Hatton wrote: Yeah, t

RE: script task using java

2004-12-07 Thread Keith Hatton
Yeah, the .* is wrong and you have a typo in the third import (no . between Packages and java). Keith -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: 07 December 2004 12:09 To: Ant Users List Subject: RE: script task using java hm, importPackage(Pa

RE: script task using java

2004-12-07 Thread Rebhan, Gilbert
hm, importPackage(Packages.java.lang); importPackage(Packages.java.util.regex.*); importPackage(Packagesjava.io.*); gives me the same error: : SyntaxError: missing name after . operator (ANT; line 3) line 3 =

RE: script task using java

2004-12-07 Thread Keith Hatton
importPackage(Packages.java.lang); etc. Keith -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: 07 December 2004 11:47 To: ant_user (E-Mail) Subject: script task using java Hi, i want to use an existing regex class into my build script. This is my first try usi

script task using java

2004-12-07 Thread Rebhan, Gilbert
Hi, i want to use an existing regex class into my build script. This is my first try using script/java with ant, so please don't laugh ;-) See my questions marked with *** Tried like that =

AW: use fileinfo in ant

2004-12-07 Thread Jan . Materne
You need 3 things: - delete task - fileset type - selector type There should be a selector for your needs. Follow the links in the manual to delete|fileset|selector. Jan > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 7. Dezember 2

use fileinfo in ant

2004-12-07 Thread lists
Hello all, I would like to process (i.e. delete) files depending on their creation or modification date or size (testing if the file is empty). Doe Ant provide tools for that? Do I need to write my own java-task? The problem seems to be so simple that I have the impression many people might h

RE: Special character in file name

2004-12-07 Thread Ming Fai
Sorry that I have overlooked that part in the document. It works perfectly. Thank you! Regards, mingfai > -Original Message- > From: Yves Martin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 07, 2004 4:03 PM > To: Ant Users List > Subject: Re: Special character in file name > > >

Re: Special character in file name

2004-12-07 Thread Yves Martin
"Ming Fai" <[EMAIL PROTECTED]> writes: > Hi, > > I want to use ANT to clean up a directory with some files named like > ".yyy~", i.e. with '~' character in the file extension. I tried a > few ways including the following method but no success: > > > > > What should I specify as