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 3960>output.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 22>outp

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: 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: AW: http request handling

2010-03-25 Thread Steve Loughran
On 25/03/2010 05:27, jan.mate...@rzf.fin-nrw.de wrote: Ant is a buildtool. Letting the build waiting for incoming HTTP requests will slow down the build and I dont see any reason why. So could you please elaborate about your use case? - who will create the http request - what kind of request is

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 applicatio

Re: How can we execute a specific target at a specific time from the build file

2009-10-16 Thread Steve Loughran
Ajay Mehra wrote: Hi, I have a build file which consists of multiple targets so if i have to run some targets at some point of time.letz say my Target1 should run at 1 p.m and my Target2 should run at 2pm.so is there any feature availabe in ant so that i can plan my targets to run like t

Re: problem with using with the javah task

2009-10-15 Thread Steve Loughran
Bill Au wrote: I have a need to limit the max heap size of the javah task. So I am using a : When I invoke javah directly with the same argument it actually works without error: javah -J-Xmx512m -classpath build/classes org.apache.hadoop.io.compress.

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: 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 Xalan

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 st

Re: Help with bug diagnosis: 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 she

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 with

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: user-unsubscr

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 logge

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, reb

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 into the new task tag properly

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 http://java.sun

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

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. N

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: 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 raises. --

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 mea

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: 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 targ

Re: build from java program

2009-06-08 Thread Steve Loughran
http://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 unsubscri

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, bu

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 n

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 package-m

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 any

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

2009-02-25 Thread Steve Loughran
Scott Stark wrote: 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 component can do that I looked at telnet, which is why I thought there might

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 paramet

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 wi

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 in. If it is just a windows box, install telnet service and run . -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Steve Loughran
- You should specify unicode content in the XML as valid XML content, not escaped \u0123 style. -The 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 more rel

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

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 com

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 command with the relevant (property driven) password, How would I do that? I need something similar for . Right now I use a plain

Re: ant and sudo

2008-11-12 Thread Steve Loughran
'm on Mac OS X (Leopard), if that matters. 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 command with the relevant (property driven) password, or set up the ssh keys so that you can ssh in to [EMAIL PROTECTED] using k

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Steve Loughran
ras/embed/src/org/antbook/embed/Embedded.java?revision=1.3&view=markup Some of that code is something we should really pull into Ant to make it easier; some EmbeddedProject you create to remove effort. What do you think, Stefan? -- Steve Loughran http://www.1060.org/blogx

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Steve Loughran
as usual, 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

Re: parallel targets

2008-11-05 Thread Steve Loughran
pull this ; add a target that prints a warning There was a Problem with endToEnd Tests!" the message is only printed if the tests failed. In our big projects we make the operation conditional because we may want to test lots of modules and not stop at

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 f

Re: Examples of ant's Task

2008-11-05 Thread Steve Loughran
Rohit P wrote: Hi, I just now had a chance to look into 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 this ant t

Re: java.lang.NoClassDefFoundError in custom task

2008-11-03 Thread Steve Loughran
e class to load 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 unsu

Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Steve Loughran
y now. 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 htt

Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Steve Loughran
rised by this. Maybe its BSF Manager at play 1. Looking 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 Jy

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

2008-10-23 Thread Steve Loughran
that one of the boxes things 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

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 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 might no

Re: Build in multiple java versions using Ant

2008-10-22 Thread Steve Loughran
scuzzie wrote: Hi, I have a project written in NetBeans 6.1 that I need to be able to compile on demand using any JDK version from 1.4.2, on a machine that does not have NetBeans installed (but does have Ant of course). The app compiles under 1.4.2 and up using the Ant xml files generated by Net

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

2008-10-08 Thread Steve Loughran
build.xml (doesnt have any affect tho): 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.org/blogxter/publish/5 Author: Ant in A

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

2008-10-02 Thread Steve Loughran
r. 2. Dont do this on the live machine; do it before it gets there Looking at your code -you delete a dir -then copy a file from under that directory That is unlikely to work well. You should keep that context.xml somewhere safe and copy it in using overwrite="true"

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: That could still confuse the line breaking code. I would suggest 1. breaking everything up 2. run ant -verbose to see what is being passed in The @{} signs show that macros are at

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 command to issue the relevant SELECT statement against the database, setting

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

2008-09-23 Thread Steve Loughran
uza <[EMAIL PROTECTED]>: 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

Re: How to Configure batch file in Ant?

2008-09-18 Thread Steve Loughran
mentions the unix script to run which is Probably best to 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

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 pe

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. Yo

Re: variables or a counter ?

2008-08-22 Thread Steve Loughran
lly, it sounds like you can use , 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 in Act

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

2008-08-22 Thread Steve Loughran
n to its 'ready-to' predecessor. One thing I'd like is a way to declare a dependency on all the targets of another target, but not its work itself. If compile does a javac, but on one project I don't wan

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

2008-08-15 Thread Steve Loughran
e? How is jar lookup different between java -jar and ? run ant in -verbose mode and you should see what Ant execs for a fork. It may also be that the directory that is used as a base for the java program is different, so that path isnt being picked up -- Steve Loughran http:

Re: Ant-jmeter task problem

2008-08-01 Thread Steve Loughran
ments - jmeterarg - are ignored. Has anyone experienced this behavior as well? Do You know of any solution? I will greatly appreciate any help. could be you need the -q and the following arg as separate values -that would be consistent with and -- Steve Loughran http://www.106

Re: Ant 1.7.1 binary distribution seems to be corrupt.

2008-08-01 Thread Steve Loughran
rself. -- 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
ature 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

Re: Getting "Exception invoking method check"

2008-08-01 Thread Steve Loughran
uncher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsu

Re: Problem :ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4

2008-07-29 Thread Steve Loughran
antlib.xml on the classpath 2. there is a resource called /oracle/antlib.xml on the classpath, but it does not define a task called jaxwsGenImpl This is one of * a classpath problem * the antlib: URI for the task is wrong -- Steve Loughran http://www.1060.org/blogxter/publis

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 specifi

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

2008-06-27 Thread Steve Loughran
irewall 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 in Action http://antbook.org/ - To

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

2008-06-25 Thread Steve Loughran
ource collections are supported as archives. What should I be doing? Thanks. the thing to know is that webinf is a fileset of its own; it was getting confused. add another fileset with the full prefix: -- Steve Loughran http://www

Re: Advanced includes/excludes for javac

2008-06-23 Thread Steve Loughran
x27; was to edit the file 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/ -

Re: Classloader reuse for tasks

2008-06-18 Thread Steve Loughran
Lucian Chirita wrote: Is there a way to reuse a classloader across several 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 task does not use ClasspathUtil to Java tries to isol

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: 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: JUnit task

2008-06-12 Thread Steve Loughran
generate better XML for other programs. -- 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 https://issues.apache.org/bugzilla/show_bu

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. can give you a unique name -- Steve Loughran http://www.1060.org/blogxter/publish/5

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: FTP Problems in 1.7.0

2008-06-09 Thread Steve Loughran
rectory from which files are listed fileset: the remote files located under the remotedir matching the include/exclude patterns of the fileset so, the nested files are the things to list. -steve -- Steve Loughran http://www.106

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

2008-05-23 Thread Steve Loughran
issue. We just 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

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://antboo

Re: Ant task walk html and find broken links

2008-05-15 Thread Steve Loughran
ct on sourceforge, but it looks pretty abandoned. I use httpunit for this, as it audits the web site during your test runs. With Java6 it can run javascript code too. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antboo

Re: AW: Running the

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

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

Re: writing to XML

2008-05-01 Thread Steve Loughran
to watch out for here is namespace games. If you want xml in a new namespace -declare the namespaces inside the echoxml -keep it all explicit -check the output by hand to see that it looks ok you can use and to automate those checks -- Steve Loughran http://www.1060.org

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

2008-04-30 Thread Steve Loughran
out to the console and parse it somehow -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: rebuilds even if source not changed

2008-04-28 Thread Steve Loughran
me.class you must move the class under the package name it is in. Without that not only does ant not do any dependency checking (is it expected to remember where every .class file comes from?) and sun's javac compiler wont build files in the correct order. -- Steve Loughran

Re: Setting path to MSVC compiler with cctask

2008-04-23 Thread Steve Loughran
't work. The cc task fails to find cl.exe if I try this. Is there any way to set env variables inside the task? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ -

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

Re: Any tool for ant build.xml file documentation

2008-04-23 Thread Steve Loughran
at would be a very helpful feature for larger build files. -- Consider this, then, my gift to you: http://www.dpawson.co.uk#ns"; > you now get a description Main variable set which gets printed when you run ant -debug [description] Main variable set -- Steve Loughran

Re: Tilde and Ant

2008-04-23 Thread Steve Loughran
my current directory instead. 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/blo

Re: SCP Task - No response from server

2008-04-22 Thread Steve Loughran
ag 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: webDav

2008-04-17 Thread Steve Loughran
Antoine [1] Jakarta 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 http://smallvoid.com/article/winnt-webdav-network-drive.html

Re: Create a task to deploy in a remote server

2008-04-17 Thread Steve Loughran
...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: Create a task to deploy in a remote server

2008-04-17 Thread Steve Loughran
Dubois, Fabien wrote: Hi, How can I create a task to deploy in a remote machine? Thank you in advance :) what do you mean by "deploy" ? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://a

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 fo

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 c

Re: arg and jvmarg

2008-04-16 Thread Steve Loughran
other developers may hit the problem. Its safest, 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

Re: Issue with time zone in ANT

2008-04-16 Thread Steve Loughran
--- 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.org/blogxter/publish/5 Author: Ant in Action http://antbook.org

  1   2   3   4   5   6   7   8   9   >