Re: To check server is down

2011-02-10 Thread Steve Loughran
On 04/02/11 15:34, Martin Gainty wrote: svn:// URLs are on port 3960 discover-target would need to test netstat output e.g. netstat -a | grep 3960output.file a fail message would be no output a found message would be the IP:3960 of the server OR in the case of ssh+svn netstat -a | grep

Re: Is ANT support WebDav task?

2010-09-29 Thread Steve Loughran
On 18/09/10 15:42, Chee Yang Chau wrote: I don't understand, how to use ant-webdav? the basic answer was no, somebody has to write one. what it does do really well is support SCP most project deploy using SCP to push their artifacts up to the remote site

Re: AntClassLoader and the system classloadr.

2010-09-29 Thread Steve Loughran
On 15/09/10 05:27, Stefan Bodewig wrote: On 2010-09-14, Rafael de F. Ferreira wrote: From a cursory inspection of org.apache.tools.ant.AntClassLoader, it seems Ant only delegates to the system ClassLoader if the class being loaded belongs to a fixed set of packages[1]. No, Ant almost always

Re: making an SCM managed copy of your external artifacts

2010-08-18 Thread Steve Loughran
On 11/08/10 01:56, Geoff Clitheroe wrote: Hi, I've used 'both approaches' 1. Use Ivy to build and maintain the repo - I use a master Ivy file with all the deps we use specified and then a resolve and rsync to the enterprise repo (which is Apache httpd). This also holds our shared ivy

Re: making an SCM managed copy of your external artifacts

2010-08-18 Thread Steve Loughran
On 10/08/10 18:31, Archie Cobbs wrote: As a side note, I do the same thing with RPM's. We have an internal RPM repository plus the public openSUSE ones. Internal RPM builds publish to the internal RPM repository. openSUSE's zypper(1) command functions like ivy but in the RPM world. RPM

making an SCM managed copy of your external artifacts

2010-08-09 Thread Steve Loughran
I want to set up a project which has all the things we depend on in SCM, plan is to have two repositories repo/internal - in house built artifacts, SCM managed release propagation, etc. repo/external - everything that normally comes out of ibiblio, jboss, reslet m2 repositories, which

Re: Java source files not part of any package

2009-10-28 Thread Steve Loughran
Dianne Yumul wrote: Hello Everyone, I'm learning to use Ant 1.7.0 as part of Xcode 3.1.2 on Mac OS X 10.6. We have a separate directory called Common/ where we keep common java source files. These files need to get included, not all at the same time though, when compiling our Java

Re: AW: AW: AW: Out of memory

2009-10-07 Thread Steve Loughran
Knuplesch, Juergen wrote: Hello, I got now the Java profiler on. Maybe I will find out, whats going on. But now javadoc ran outofmemory, probably because of my change from 32Bit to 64Bit java. Use -XX:+UseCompressedOops -best feature of Java 6u15.

Re: AW: Out of memory

2009-10-06 Thread Steve Loughran
Knuplesch, Juergen wrote: Hello, Thanks for your answer! Good to know, that there are known problems. I already fork the junit tests. I even have parted the tests into three parts, because of earlier challenges. Memory eater is also junitreport (especially for 2200 tests) etc., all the XSLT

Re: AW: AW: Out of memory

2009-10-06 Thread Steve Loughran
Knuplesch, Juergen wrote: Hello Steve, I had my problems with junitreport before This time the PermGenSpace error happens with saxon. For this XSLT I had to use saxon. In my build I use Saxon and for junitreport the standard VM xsl processor, How do I tell junitreport to use Saxon or

Re: Help with bug diagnosis: junitreport task takes 30+ minutes to complete

2009-09-14 Thread Steve Loughran
Francis GALIEGUE wrote: ort is fairly quick. How can I diagnose the problem precisely? Can I use another XSL processor that will be faster than xalan-j2? Well, a simple ant -v showed the problem, as it shows which files are parsed. The two bigger files are 10 MB and 9 MB respectively! The

Re: XML Parser give bad version number in .class file

2009-08-11 Thread Steve Loughran
Scot P. Floess wrote: so unless you are setting any kind of factory for the xml parser, it should use the stock XML parser that comes with Java. ant -diagnostics finds the XML parser - To unsubscribe, e-mail:

Re: XML Parser give bad version number in .class file

2009-08-11 Thread Steve Loughran
jdeisenberg wrote: Steve Loughran wrote: Scot P. Floess wrote: so unless you are setting any kind of factory for the xml parser, it should use the stock XML parser that comes with Java. ant -diagnostics finds the XML parser That's the problem. diagnostics ends

Re: Problem with zip task

2009-08-04 Thread Steve Loughran
Cole, Derek E wrote: I don't think this will be possible really. The filesystem is actually a clearcase snapshot view on that NAS...it gets a set of default permissions when the view is created/updated. Clearcase is not a normal FS, wierd things happen. I fear it. If anything misbehaves,

Re: Why does Junit Task buffers all logs

2009-08-04 Thread Steve Loughran
Mel T wrote: When running a JUnit task, all logs are accumulated in a ByteArrayOutputStream. This can consume a lot of memory if running in debug and some libraries make excessive use of debug logging (such as DBUnit). Why does the JUnit task do that? It isnt junit so much as the junit

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

2009-07-01 Thread Steve Loughran
Garima Bathla wrote: David : Thanks, I have tried setting the class-path via manifestclasspath task as well within a build.xml ant script and it is the same result, with long class-path's the jar names are split over differnt lines with \n and space character. This is by design

Re: Adding parallel JUnit task

2009-07-01 Thread Steve Loughran
Jason Rutherglen wrote: Hello, please excuse the newbie question. For the Apache Lucene project I'd like to paralleize the unit tests by subclassing JUnitTask into ParallelJUnitTask which executes JUnitTests in threads. I don't understand how to place things like batchtest into the new

Re: Showv stopper issue with clearAntLib

2009-06-18 Thread Steve Loughran
Laurent Morissette wrote: Hi everyone I have an issue regarding clearantlib I try to get a stream baselin with a custom task defined as follow Where I struggle is that system ou are not shown in console (So no logging possible) Ant does tricks to capture the log, you shouldnt print to it.

Re: Doing Ant builds

2009-06-18 Thread Steve Loughran
Michael Ludwig wrote: Steve Loughran schrieb am 16.06.2009 um 16:47:55 (+0100): Michael Ludwig wrote: Okay, so you were talking about Java limitations in general, not Java limitations within the context of an Ant extension? exactly. Thanks for clarifying. What you're saying about

Re: Doing Ant builds

2009-06-16 Thread Steve Loughran
Michael Ludwig wrote: Steve Loughran schrieb am 15.06.2009 um 12:40:59 (+0100): Michael Ludwig wrote: Steve Loughran schrieb am 12.06.2009 um 11:49:48 (+0100): we do strive to be more declarative than fully procedural languages, we don't have loops and so lack full turing-equivalence

Re: Doing Ant builds

2009-06-15 Thread Steve Loughran
Michael Ludwig wrote: Steve Loughran schrieb am 12.06.2009 um 11:49:48 (+0100): we do strive to be more declarative than fully procedural languages, we don't have loops and so lack full turing-equivalence. There are also limits to what you can do in java I think I can take this to mean

Re: Abort build with successful status

2009-06-15 Thread Steve Loughran
You could fail but set the exit code to 0. It will still print fail, though that is actually the job of the logger. There's no reason why a custom logger cant skip that fail message if the exit code is 0, or even print out whatever the exception message text is that fail raises.

Re: Replacing build.xml with Build.java - Doing Ant builds directly from Java

2009-06-12 Thread Steve Loughran
Michael Ludwig wrote: Ashley Williams schrieb am 11.06.2009 um 17:51:45 (+0100): // create the ant parent project Project project = new Project(); project.setName(project); project.init(); // create the child

Re: Doing Ant builds

2009-06-12 Thread Steve Loughran
Michael Ludwig wrote: Ina, Antoine schrieb am 11.06.2009 um 19:58:37 (+0200): I am posing a general question about Ant vs Make vs Batch: 1- What is advantage of Ant script over regular Batch script that calls up the solution files for all the projects in your system tree of projects(for Windows

Re: build from java program

2009-06-08 Thread Steve Loughran
://antbook.cvs.sourceforge.net/viewvc/antbook/examples/sections/extending/ch18_extras/embed/ # -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e

Re: Java in JDK but ANT can't find it!

2009-05-19 Thread Steve Loughran
David Nemer wrote: Hey Guys, thank you all for your help, I'm answering the questions from Ashley, Steve and Kevin, some answers are huge due to the compilation message ANT provides. Just a reminder, I'm running ANT in a Linux Server, my overall goal is to download a version from a repository,

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread Steve Loughran
David Nemer wrote: Just a remark, when I run the application and /opt/jdk1.6.0_06/lib/tools.jar to the classpath. It gives me a different error message: Compile failed; see the compiler error output for details. there is no error msg and it still says BUILD SUCCESSFUL 1. is this a

Re: Sending small mail when build is finished

2009-05-18 Thread Steve Loughran
Knuplesch, Juergen wrote: Hello, My challenge is: I dont want to use the maillogger anymore, because our logs have become very large. So I started to use -logfile and store it with my Buildresults. But on the other hand: I want to send a small mail, that tells me whether the build was ok or

Re: AW: Ant 1.7.1 hangs on windows

2009-03-18 Thread Steve Loughran
jan.mate...@rzf.fin-nrw.de wrote: I just installed ant on a new windows XP workstation. I have the following settings: ANT_HOME=C:\bin\apache-ant-1.7.1 JAVA_HOME=C:\Java\jdk1.6.0_12 If I type ant -version it runs, reports the version then hangs with NTVDM.exe taking half the cpu. Does

Re: Is there a login wait for password target/task?

2009-02-25 Thread Steve Loughran
Scott Stark wrote: input asks for entry of some string; it doesn't ask if the property is already set, so for CI servers you set it up with login details for that account. For talking to a nested shell script, I think the telnet component can do that I looked at telnet, which is why I thought

Re: Is there a login wait for password target/task?

2009-02-24 Thread Steve Loughran
Scott Stark wrote: Ant has optional Perforce tasks, and these tasks use the globalopts setting, so you can pass a password though that. Hi David, yes I saw that but couldn't find anything that does what I want. Our Perforce install does not allow you to pass a password as a command line

Re: Using new Junit 4.1 with ANT

2009-01-22 Thread Steve Loughran
Shawn Castrianni wrote: How can I use the new JUnit 4.1 with ANT 1.7.X? If I put the new junit.jar on the classpath, everything seems to work until the very end when the unit test report is created. ANT tries to use the XSL stylesheets from ant-junit.jar which apparently is not compatible

Re: Developers information needed

2009-01-19 Thread Steve Loughran
bhavani shanker wrote: Could you please elaborate on the two sources which u referred to in the previous mail. SVN log lists only committers but not developers (who r not committers). So it provides me only half information. And as said, Bugzilla is where all developers submit their patches etc.

Re: Invoking remote batch file using ANT

2009-01-05 Thread Steve Loughran
Rohit P wrote: Hi, I have to write a build script that will invoke a batch file on remote m/c if it runs SSH, you can ssh in. If it is just a windows box, install telnet service and run telnet. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action

Re: Passing multi-byte strings from ANT using sysproperty task

2008-12-11 Thread Steve Loughran
- You should specify unicode content in the XML as valid XML content, not escaped \u0123 style. -The java task and things that use it set up the command line; there's a risk that it could get in the way and not preserve high unicode content. If so, its something we need to test for -A

Re: Ant : Very slow on Vista

2008-12-10 Thread Steve Loughran
Eric Cambray (BlueXML) wrote: Hello, I tried different things and I have now a acceptable time. I uninstalled my anti-virus (McAffee) and now all is ok. So it's not ant. But under windows XP with an antivirus we don't have the problem. some AV tools with real time antivirus protection do a

Re: SCP and SSHExec tasks

2008-11-26 Thread Steve Loughran
Rez wrote: Hi Is it possible to create the directories on the remote server on the fly as the scp ant task is executed or do I need to run sshexec to create them first? I use sshexec first, with a mkdir -p as the command. I also have a couple of presetdef definitions to simplify making

Re: ant and sudo

2008-11-12 Thread Steve Loughran
Hendrik Maryns wrote: Steve Loughran schreef: The way we do root level access is to ssh in to localhost and run stuff as root there. you can either set up the ssh command with the relevant (property driven) password, How would I do that? I need something similar for signjar. Right now I

Re: ant and sudo

2008-11-12 Thread Steve Loughran
. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Steve Loughran
, contributions to improve this -more examples etc- are welcome. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED

ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-05 Thread Steve Loughran
Can't make ApacheCon this week in New Orleans? You can still watch all the keynotes, Apache 101 sessions, and system administration track in live video streams: http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann Keynotes and the Apache 101 lunchtime sessions are free; the

Re: Examples of ant's parallel Task

2008-11-05 Thread Steve Loughran
Rohit P wrote: Hi, I just now had a chance to look into parallel ant task. I would definitely start working on it and make good use of it in my time-consuming build scripts. To know it still better wanted to have a look into few examples that use this task. I guess most of them have come over

Re: parallel targets

2008-11-05 Thread Steve Loughran
if=unittest.failed depends=target_b echoThere was a Problem with endToEnd Tests!/echo /target the message is only printed if the tests failed. In our big projects we make the fail operation conditional because we may want to test lots of modules and not stop at the first failure; -- Steve Loughran

Re: java.lang.NoClassDefFoundError in custom task

2008-11-03 Thread Steve Loughran
right; 3. check you have all other classes it needs on the classpath right too -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail

Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Steve Loughran
at the stack trace, you've just tried to create a directory that isnt there } else if (!fsDir.isDirectory()) { handle(Directory does not exist: + fsDir); //here 2. Is there a version of Jython for the Java6 scripting engine? Ant can work with that instead. -- Steve

Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Steve Loughran
. well, there's still a security manager getting in the way -it is security related problem. Otherwise you'd have seen the error message/ -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Steve Loughran
Mark Salter wrote: Settle, William wrote: Is this an issue with the get task, the apache server on the other side or something I have not configured on the client or server side? I did read in my google search that Apache does/did not return last modified information by default, but this

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Steve Loughran
summertime has ended already. This week is one of those times of year where any summertime/wintertime bugs show up. Has the bug just surfaced? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

Re: Ant compilation error (RMI class def not found)

2008-10-08 Thread Steve Loughran
in the build.xml (doesnt have any affect tho): property name=wtk.j2mews.enabled value=true / It looks like whatever wtkpreverify is, it isn't getting the classpath set up right. Try running ant -verbose to see if the classpath gets printed out -- Steve Loughran http://www.1060

Re: How to replace context.xml in to already deployed war+application?

2008-10-02 Thread Steve Loughran
it in using overwrite=true in copy -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Build fails when 'java' task's arg line contains a directory path with spaces

2008-09-30 Thread Steve Loughran
Chad McHenry wrote: Just correcting my example; obviously you only want to quote the individual arguments: arg line='@{type}' '@{configDir}'/ That could still confuse the line breaking code. I would suggest 1. breaking everything up arg value=@{type}/ arg location=@{configDir}/ 2. run ant

Re: How to check whether database exists and then proceed ?

2008-09-29 Thread Steve Loughran
. -steve [1] http://research.microsoft.com/users/lamport/pubs/liveness.pdf -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail

Re: How to check whether database exists and then proceed ?

2008-09-26 Thread Steve Loughran
Kothari, Shivani wrote: Hi, Thanks for pointing it out. I want to check using ant that whether a particular database exits on MSSQL server? And if it exists I want to proceed further in the deployment script. Use the sql command to issue the relevant SELECT statement against the database,

Re: Could not create task or type of type: junit

2008-09-23 Thread Steve Loughran
]: I don't understand why this is happening, since ant-junit.jar is shipped within $ANT_HOME/lib directory. That's not junit.jar. It only contains the Ant classes that depend on JUnit classes. Please see the library dependency section of the manual. --DD -- Steve Loughran

Re: How to Configure batch file in Ant?

2008-09-18 Thread Steve Loughran
it mentions the unix script to run which is Probably best to exec the unix untar command so that permissions get preserved, otherwise shell scripts don't have their execute bit set -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http

Re: Ivy 2 resolve time over a WAN

2008-09-05 Thread Steve Loughran
[EMAIL PROTECTED] wrote: Thanks. I'll turn on the logging for http clients. For a time comparison - ivy 1was 12 seconds. the other trick (on unix, anyway), is while the program is sitting around, do jps -v to get the process ID kill -QUIT (that PID) to get a stack trace There were

Re: Ant Build Performance under Windows XP versus Vista

2008-09-04 Thread Steve Loughran
rat12345 wrote: All, I have a large project (10,000+ Java 5 classes) in over 50 modules. When building the project on an IBM Thinkpad T42 running XP, the build takes ~4 minutes. When building the project on a T61 running Vista, the build takes over 7 minutes. Has anyone else seen

Re: Testing Ant Script

2008-09-02 Thread Steve Loughran
S Prabhu wrote: Hi, I have developed an ANT Script to perform certain process. I want to test this ant script without executing it. Is there is any way to test the ANT Scripts (like, Junit for java APIs) There is AntUnit, but it will execute the script, just as Junit does for its code.

Re: Enforcing depends order for 3rd-party targets?

2008-08-22 Thread Steve Loughran
target, but not its work itself. If compile does a javac, but on one project I don't want that, I can't go target name=compile depends=dependencies(base.compile) / -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

Re: variables or a counter ?

2008-08-22 Thread Steve Loughran
Actually, it sounds like you can use waitfor, just with an extended condition. I do something similar at work where we actually run regexp patterns over the response and wait for a specific pattern coming back. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant

Re: ant java jar=asdf.jar fails to execute jar that java -jar asdf.jar succeeds on

2008-08-15 Thread Steve Loughran
for the java program is different, so that path isnt being picked up -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL

Re: Getting Exception invoking method check

2008-08-01 Thread Steve Loughran
) -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ant 1.7.1 binary distribution seems to be corrupt.

2008-08-01 Thread Steve Loughran
made 06/27/08 07:50:34 using DSA key ID AA0077B0 gpg: BAD signature from Kev Jackson (apache key) [EMAIL PROTECTED] Not sure who else to inform about this... I will take a look at this. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action

Re: Ant 1.7.1 binary distribution seems to be corrupt.

2008-08-01 Thread Steve Loughran
. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ant-jmeter task problem

2008-08-01 Thread Steve Loughran
values -that would be consistent with java and exec -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: hooks/post-commit not being called when commiting with Ant.

2008-07-29 Thread Steve Loughran
mindspin311 wrote: What I'm doing is tagging a build in an ant script using a user 'build'. This is an actual user, and not something like apache or someone without a shell account. I've got automated builds triggered using Atlassian Bamboo when done from the command line or doing a commit in a

Re: Compiling JSP files using ANT?

2008-07-10 Thread Steve Loughran
[EMAIL PROTECTED] wrote: Hi, I'm using Ant 1.6 and WL 9.2.2. Are there directives I can add to my build.xml file that will allow me to compile JSPs? Any suggestions you have are greatly appreciated, - Dave You need to use a JSP compiler specific to your application server -and the

Re: Ant hangs up while loading com.ibm.db2.jcc.DB2Driver using AntClassLoader

2008-06-27 Thread Steve Loughran
. The Ant jars, used, are bsf.jar (175.348 B) and bsh-1.3.0.jar (242.154 B), created by Ant 1.4.1. There is no firewall blocking ports. I havent heard of this before. What happens if you run ant -diagnostics ? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant

Re: Seeking help regarding webinf nested element of war ant target.

2008-06-25 Thread Steve Loughran
another fileset with the full prefix: target name=war war destfile=${warfile} webxml=${webxml} webinf dir=${metadata} includes=*.xml /webinf zipfileset dir=jsp prefix=WEB-INF/jsp / /war /target -- Steve Loughran http://www.1060.org/blogxter

Re: Advanced includes/excludes for javac

2008-06-23 Thread Steve Loughran
so that it couldn't compile, then see if that broke the build. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL

Re: Classloader reuse for java tasks

2008-06-18 Thread Steve Loughran
Lucian Chirita wrote: Is there a way to reuse a classloader across several java tasks? All the tasks refer the same classpath ID, and have fork=false. I thought setting ant.reuse.loader would take care of this, but it doesn't because the java task does not use ClasspathUtil to Java tries

Re: Dumb Question on ant-optional..

2008-06-16 Thread Steve Loughran
-- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [patch] typedef error when using #

2008-06-12 Thread Steve Loughran
[EMAIL PROTECTED] wrote: Hi, Error occurs on 1.7 and 1.7.1 beta2. If I define a typedef with a # in the path ant won't run. I have included a patch and have not created an error, is this a known issue or already fixed? it wasnt known, but now it is

Re: JUnit task

2008-06-12 Thread Steve Loughran
Tim Visher wrote: Wow... let me feel sheepish for a bit as I blithely mentioned the acquisition of Ant in Action to its author (sometimes, reading signatures is helpful)... I took it at a complement. If you'd said it hadn't helped, then I'd be worried I suppose that means that help from

Re: Change Temp Directroy used by ANT

2008-06-11 Thread Steve Loughran
environment variables of the processes started; this gets picked up by the java.io.tmpdir property and you are laughing. Alternatively, do a copy that doesnt require a unique name in the temp folder. tempfile can give you a unique name -- Steve Loughran http://www.1060.org/blogxter

Re: FTP Problems in 1.7.0

2008-06-09 Thread Steve Loughran
the remotedir matching the include/exclude patterns of the fileset so, the nested files are the things to list. -steve -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

Re: FTP Problems in 1.7.0

2008-06-09 Thread Steve Loughran
Reinhardt Christiansen wrote: NOTE: I never saw this reply in my email client for some reason so I went into MARC and copied and pasted it in here, then reformatted it so that it now looks approximately right. Reinhardt Christiansen wrote: Can anyone help me with the Ant optional ftp

Re: ANT fails while trying to compile a target

2008-05-23 Thread Steve Loughran
; Filename too long That's javac bailing out; with the path to xmlparserv2.jar being way too wierd. How do you put that path together? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

Re: Possible Bug? Ant task jar does not handle files with over 255 chars in the path name

2008-05-23 Thread Steve Loughran
open and close files, and take whatever API we're given. 2. That doesnt mean it isnt inconvenient The fix is for the Java API to go to full length filenames everywhere, even if it gives you the right to create filenames that old apps cant handle. -- Steve Loughran http://www

Re: AW: Running the exec ant command in Eclipse?

2008-05-14 Thread Steve Loughran
Craig Riley wrote: Hi, Thanks for that, it now works. I simply needed to add..arg line=/c / before my wget command. Cheers Craig you can usually use the get task to retrieve things too - To unsubscribe, e-mail:

Re: classloader problem?

2008-05-07 Thread Steve Loughran
Christofer Jennings wrote: I think I have a classloader problem. I've made a custom task that looks through classes for a method annotation, then makes a report. I've got junit tests that work in my IDE showing that the annotations can be found. But when I run the task the annotations are not

Re: writing to XML

2008-05-01 Thread Steve Loughran
can use xmlvalidate and schemavalidate to automate those checks -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL

Re: read environment variables set by bat file, which is run by ant exec task

2008-04-30 Thread Steve Loughran
inheritance rules and the like What is good is -echo things out as a .properties file -load it in or: -echo stuff out to the console and parse it somehow -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

Re: javac rebuilds even if source not changed

2008-04-28 Thread Steve Loughran
?) and sun's javac compiler wont build files in the correct order. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Tilde and Ant

2008-04-23 Thread Steve Loughran
. I know I should use ${user.home}, but does anyone have any idea why it happened? yes. ~ is interpreted by the shell, and Ant has no shell. You cant use ~/something in Java code or even C/C++ apps. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action

Re: Any tool for ant build.xml file documentation

2008-04-23 Thread Steve Loughran
ant -debug [description] Main variable set -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Any tool for ant build.xml file documentation

2008-04-23 Thread Steve Loughran
Dave Pawson wrote: On 23/04/2008, Steve Loughran [EMAIL PROTECTED] wrote: Ant is namespace aware, it merely chooses not to ignore content in other namespaces, as it assumes they are tasks declared into a different namespace. Kind of against the idea of namespace aware apps? If you don't

Re: Setting path to MSVC compiler with cctask

2008-04-23 Thread Steve Loughran
=env/ property name=env.Path value=${env.Path};C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin/ The cc task fails to find cl.exe if I try this. Is there any way to set env variables inside the cc task? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author

Re: SCP Task - No response from server

2008-04-22 Thread Steve Loughran
-0.1.37.jar. Am I missing something obvious here like a missing flag in my SCP task? Try telnet IPAddress 22 to see if the server is reachable from the client. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

Re: [ANN] Gradle, a new build system, which uses Ivy

2008-04-22 Thread Steve Loughran
build scripts than XML. This is a different discussion though. Nice to see what you've done; I've put up a blog entry that will come out into planet apache shortly. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/

Re: [ANN] Gradle, a new build system, which uses Ivy

2008-04-22 Thread Steve Loughran
Hans Dockter wrote: Hi Steve, On Apr 22, 2008, at 2:41 PM, Steve Loughran wrote: Hans Dockter wrote: We are very excited to announce Gradle, a new build system. We announce it on this list, as Gradle uses Ivy for its dependency management. To learn more about Gradle, have a look at http

Re: Create a task to deploy in a remote server

2008-04-17 Thread Steve Loughran
library...I think Ant 1.7.0 works best with an earlier version, like 0.1.27... try that release if 0.1.37 is causing problems. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

Re: webDav

2008-04-17 Thread Steve Loughran
Slide : http://jakarta.apache.org/slide/ [2] Apache Jackrabbit : http://jackrabbit.apache.org/ 1. The slide code should still work. 2. If you are building on windows, you can mount any webdav drive and then use copy http://smallvoid.com/article/winnt-webdav-network-drive.html -- Steve Loughran

Re: Can zip task to create a zip archive with password?

2008-04-16 Thread Steve Loughran
. Better to use something like BouncyCastle and encrypt the files rigorously -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail

Re: taskdef not receiving the classpath properly?

2008-04-16 Thread Steve Loughran
-only ANT_HOME/lib -steve -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Issue with time zone in ANT

2008-04-16 Thread Steve Loughran
--- Locale information --- Timezone Greenwich Mean Time offset=360 -which is wrong as once summertime kicks in, I am no longer in GMT...again the JVM is blurring things here. -steve -- Steve Loughran http://www.1060

Re: arg and jvmarg

2008-04-16 Thread Steve Loughran
, therefore, to use arg value, except in the special case that you want people who override your build file to include a whole list of custom arguments (like custom JVM properties/options). -steve -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action

Re: arg and jvmarg

2008-04-16 Thread Steve Loughran
Dave Pawson wrote: On 16/04/2008, Steve Loughran [EMAIL PROTECTED] wrote: Saxon XSLT processor. -o filename is the parameter. I'd always thought of it as one param. Name (-o) value (filename) Ant seems to view it differently. Its two separate parameters when you break up the command line

Re: XSLT task fail rerouting

2008-04-16 Thread Steve Loughran
Madunic, Marijan (RBI-US) wrote: I've been looking at the attributes available to the XSLT task on do not see an attribute to define what to do if the xslt task fails. A bit of background first. Myself and a colleague are parsing 10s of thousands of XML files and every now and then an ill

Re: launching cmd from ANt

2008-04-02 Thread Steve Loughran
of cmd.exe to return back to ant processing spawn=true. but you lose all output from the command line -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

  1   2   3   4   5   6   7   8   >