Re: Rhino global.load() in script context

2010-08-23 Thread Greg Roodt
gt; > var quit=shellGlobal.quit; > > var readFile=shellGlobal.readFile; > > var readUrl=shellGlobal.readUrl; > > var runCommand=shellGlobal.runCommand; > > var seal=shellGlobal.seal; > > var serialize=shellGlobal.serialize; > > var spawn=shellGlobal.spawn; > > var s

Re: Rhino global.load() in script context

2010-08-22 Thread Greg Roodt
ed from the embedding context. But I'm not sure if this > is actually a good thing to do. Certainly it reduces the utility of the Ant > script context, and increases its verbosity for situations where external > scripts must be loaded via a module loader, such as Dojo or Req

Re: Rhino global.load() in script context

2010-08-21 Thread Greg Roodt
uot;version:"+ver); print(this); for(var prop in this){ print(prop); } } a(); On Sat, Aug 21, 2010 at 7:03 PM, Jacob Beard wrote: > Hi Greg, > > Thanks for your response. Replies below: > > > On 10-08-21 01:41 PM, Greg Roodt wrote: > >> I believe load() is

Re: Rhino global.load() in script context

2010-08-21 Thread Greg Roodt
I believe load() is part of Rhino Shell. I think all that the task runs when using JavaScript is the interpreter. It would only have the pure Javascript standard language features (and a few bits and pieces to interact with Java and the execution context). It might be easier to run the shell for

Re: using recent Rhino in ant script

2010-08-21 Thread Greg Roodt
I've got it working doing using the following Ant project: echo = helloworld.createTask("echo");

Re: SCP Task

2010-04-27 Thread Greg Roodt
Is that Ant 1.7.1? I've used it without problems. The task can be found in ant-jsch.jar. On Tue, Apr 27, 2010 at 4:52 PM, David Weintraub wrote: > Does the SCP task work? We use Ant 1.7 and recently tried the > task. We included the jsch.jar, but we got the following error: > > BUILD FAILED

Re: Two pass compile for instrumented code

2010-04-14 Thread Greg Roodt
On Tue, Apr 13, 2010 at 7:51 PM, Antoine Levy-Lambert wrote: > > Original-Nachricht > > Datum: Tue, 13 Apr 2010 17:37:37 +0100 > > Von: Greg Roodt > > An: Ant Users List > > Betreff: Two pass compile for instrumented code > > > Hi >

Two pass compile for instrumented code

2010-04-13 Thread Greg Roodt
Hi I have an Ant build that consists of the basic compile, test, package, report phases. The report phase is a bit slow (Clover particularly) for developers looking for quick feedback on tests. Developers dont need Clover reports, Checkstyle etc etc every time and we mainly prefer these to be gene

Re: Need help with jdk1.6.0_11 build

2010-04-02 Thread Greg Roodt
JDK 1.6.0u11can be found here: http://java.sun.com/products/archive/j2se/6u11/index.html It is possible to run Ant with a particular version of Java (using JAVA_HOME or other) and then use "fork" in javac to specify an alternative version of the Java compiler for the build. The documentation of t

Re: Cobertura

2010-03-09 Thread Greg Roodt
http://cobertura.sourceforge.net/anttaskreference.html The Cobertura task is a 3rd party Ant task and not part of core Ant. You will probably have more luck looking at the Cobertura documentation. Kind Regards Greg Roodt On Tue, Mar 9, 2010 at 6:50 AM, Irfan Sayed wrote: > Hi All, >

Re: Need help viewing output from failed ant/junit tests

2010-03-05 Thread Greg Roodt
Ah, good suggestion Stefan. That makes sense. I personally have had no issues capturing STDOUT, but I use the xml formatter to generate JUnit reports on Hudson. Also, this looks like a particularly nasty little problem if the test times out or runs out of stack in a different environment. Cheers

Re: Need help viewing output from failed ant/junit tests

2010-03-05 Thread Greg Roodt
Ant normally captures stdout. Have you tried the xml formatter? It looks like your test is failing because its timing out, does it pass if you remove the timeout? Also, is there a reason you are using sysout rather than a logging framework like log4J? Cheers Greg On Fri, Mar 5, 2010 at 2:35 P

Re: Build fail

2009-11-24 Thread Greg Roodt
>                   > > > test-unit: >     [echo] running unit tests for project server >    [junit] Testsuite: > com.test.server.NetworkServerInitialisationUnitTestCase >    [junit] Tests run: 4, Failures: 0, Errors: 1, Time elapsed: 0.346 sec >    [junit] >    [junit] Testcase: > TestTheServerIsNotConnected(com.t

Re: Build fail

2009-11-24 Thread Greg Roodt
Ant has resolved your variables references. Your "if" should look like this: On Tue, Nov 24, 2009 at 7:32 PM, Ben Cuthbert wrote: > Yes I got the following error running in debug > > test-unit: > Skipped because property 'true' not set. > > > ant build -Dunit.test=true -verbose > > What is th

Re: Build fail

2009-11-23 Thread Greg Roodt
                    > >                                         usefile="false" /> > >                                         >                                                 >                                                         name="**/*AcceptenceTestCase.java" /> >

Re: Build fail

2009-11-22 Thread Greg Roodt
7: Test failed!!! >>> >>> >>> >>> On 21 Nov 2009, at 16:33, Ben Cuthbert wrote: >>> >>> Yes so I have the following line in the same target at the end, I see the >>>> >>>> unit test error but the build does not stop >>>> >>>> >>>> >>>>       >>>> >>>> >>>> On 21 Nov 2009, at 10:05, Greg Roodt wrote: >>>> >>>> >>>>> >>>> >>>> >>> > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: Build fail

2009-11-21 Thread Greg Roodt
Are you picking up your tests.failures property somewhere to fail the build? e.g. On Sat, Nov 21, 2009 at 8:43 AM, Ben Cuthbert wrote: > When one of my unit tests fail the build is still successful. But in my ant > config I have the following > > failureproperty="tests.failures" errorpropert

Re: Need help!! Ant find duplicate files

2009-11-11 Thread Greg Roodt
Adam's suggestion of a script is probably going to be the simplest solution. Another option may be to take a look at the Checksum task and generate MD5 hashes for the files, then compare the MD5 hash values for each file, if the values are equal, then you know you have a duplicate. You could then

Re: Unable to run simple java file using Ant

2009-10-10 Thread Greg Roodt
Yes, you can place the source somewhere else, but Im not going to tell you how. I think it would be best for you to learn how to do this yourself. Study what your existing build.xml is doing by looking at the task references here: http://ant.apache.org/manual/tasksoverview.html It would be a very s

Re: Unable to run simple java file using Ant

2009-10-10 Thread Greg Roodt
Your build.xml is trying to compile Java source code in ./src. You therefore need to place your Java source code in that directory. On Sat, Oct 10, 2009 at 4:44 PM, srinivas2828 wrote: > > No Roeseindia not in ubder src folder and should i need to place or using > ant means build.xml file we ca

Re: Unable to run simple java file using Ant

2009-10-10 Thread Greg Roodt
Looks like nothing is being compiled. Is your Java source code under ./src? Is your Java file called Roseindia.java? Does Roseindia have no package and does it have a correctly defined main method? On Sat, Oct 10, 2009 at 4:33 PM, srinivas2828 wrote: > > thanks for your reply > Exactly, only Ma

Re: Unable to run simple java file using Ant

2009-10-10 Thread Greg Roodt
Looks like your jar is only created with the manifest and no compiled Class files. Can you confirm if there are any Class files in the jar? Does the code compile successfully into ./build/classes? On Sat, Oct 10, 2009 at 4:23 PM, srinivas2828 wrote: > > Hi I am trying to use ant to compile and r

Re: path problems in build.xml

2009-09-09 Thread Greg Roodt
Ok, my last guess would be you need JAVA_HOME= /usr/lib/jvm/java. On Wed, Sep 9, 2009 at 11:02 PM, Kerry Scott wrote: > Thanks Greg but.. > when I do that it can't find tools.jar which is in /usr/lib/jvm/java/lib > > > -Original Message- > From: Greg Roodt >

Re: path problems in build.xml

2009-09-09 Thread Greg Roodt
Hi I think you've answered your own question. Its looking for a JDK, but your JAVA_HOME references the JRE. Try setting JAVA_HOME to /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 Greg On Wed, Sep 9, 2009 at 10:20 PM, Kerry Scott wrote: > Hi > I have problems running Ant and I am sure that it is

Re: Unable to delete file

2009-08-18 Thread Greg Roodt
Im sure the intentions are good, but these suggestions are not solving the problem at hand. Jeff, I suggest giving us a bit more to work with. Is there any easy way to reproduce the behavior you are seeing? Its almost certainly some sort of file path problem. On Tue, Aug 18, 2009 at 7:03 PM, Br

Re: annotations are only available if source level is 5.0

2009-07-29 Thread Greg Roodt
There should be a build.xml somewhere in the project. Probably /tmp/OpenbravoERP-2.50MP2/src-db/build in your case, but Im not familiar with this project/product. Inside the build.xml there will be an Ant target with a "javac" task. On Wed, Jul 29, 2009 at 1:15 PM, jann1 wrote: > Scot P. Flo

Re: annotations are only available if source level is 5.0

2009-07-29 Thread Greg Roodt
Try this: On Wed, Jul 29, 2009 at 1:00 PM, jann1 wrote: > Hello all, > opensuse11.1, openbravoERP-250MP2: > ant install.source produces the following error: > > compile: >[javac] Compiling 1 source file to > /tmp/OpenbravoERP-2.50MP2/src-db/build/classes >[javac] -- >

Re: Problem with zip task

2009-07-28 Thread Greg Roodt
>> >> >> >> >> >> > whenempty="create"> >> >> >> >> >> >> >> In the build log, it says right before the [zip] out put >> >> [mkdir] Skipping /path-to//archivedir because it al

Re: Problem with zip task

2009-07-28 Thread Greg Roodt
H, looks a bit suspicious. Could you please include the relevant parts of the build.xml? I know that a few Java File operations dont work very well across file systems. Renaming has given me problems in the past. On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E wrote: > The mounts are persis

Re: How can I exclude this directory?

2009-01-13 Thread Greg Roodt
Hi I have never used the war task, but this looks like a FileSet problem. Try dojo/** Cheers Greg On Tue, Jan 13, 2009 at 6:39 PM, wrote: > Hi, > > I'm using Ant 1.6 and trying to build my WAR file. Im my web root > directory, I have a directory named "dojo" that I wish to exclude from my >

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
Mark, Basically SK wants to pass a System Property into a Java programme executed by Ant. The problem is, that he wants to set non-ASCII characters as the System Property, which is a bit tricky. I agree with you, we need a clearer understanding of what SK is trying to achieve and perhaps BASE-64 o

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
inside the java program(like the code below) > then it is printing proper multi-byte character: > >System.setProperty("com.param1", "\u0012"); >System.out.println(System.getProperty("com.param1")); > > Thanks, > Shashidhar

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
This is a guess, but try using the Unicode escape sequences for your sysproperty. On Thu, Dec 11, 2008 at 7:12 AM, Shashidhar Kotta <[EMAIL PROTECTED] > wrote: > > Hi All, > > > > In our project we have requirement to pass multi-byte strings from ANT to > java program. We are passing multi-byte

Re: NoSuchMethodError when building a task

2008-12-01 Thread Greg Roodt
The ejbgen task seems to be a Weblogic specific task. I think you would have more luck asking BEA for support. BTW, setting the source attribute=2.18 seems incorrect to me, I would try 1.5, but thats a major guess. I have no knowledge of this task. Cheers Greg On Mon, Dec 1, 2008 at 4:50 PM, <[E

Re: ANT failing from command line

2008-12-01 Thread Greg Roodt
How sure are you that you are have Ant 1.7.1? Here is my output and there are size differences in the jars. U:\>ant -diagnostics --- Ant diagnostics report --- Apache Ant version 1.7.1 compiled on September 23 2008 --- Implementation Version ---

Re: ANT failing from command line

2008-12-01 Thread Greg Roodt
Yes. Ammar, you need to ensure that the ANT_HOME environment variable is set to the file system location where you extracted Ant 1.7.1. You also need to ensure that %ANT_HOME%\bin is earlier in your PATH than any other installations of Ant. Greg On Mon, Dec 1, 2008 at 11:42 AM, Mike Stewart <[E

Optional classpath entry support for FTP task

2008-09-23 Thread Greg Roodt
the CLASSPATH. I dont really like those options, since they do not support the idea of complete or portable builds. Would anybody else like this functionality added to Ant? Kind Regards Greg Roodt - To unsubscribe, e-mail