RE: Won't Build: NoClassDefFoundError

2008-08-12 Thread Martin Gainty
is serializer.jar on your system CLASSPATH ? set CLASSPATH=/FolderWhichContainsClasspath;$CLASSPATH export CLASSPATH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sen

RE: How to restrict what goes into my WEB-INF/lib directory?

2008-08-12 Thread Martin Gainty
Hi Dave- includes only the commons-validator-1.3.1.jar http://ant.apache.org/manual/CoreTasks/war.html *** includes includesAll files are included when omitted. HTH Martin __ Disclaimer and confidentiality note Everything in

How to restrict what goes into my WEB-INF/lib directory?

2008-08-12 Thread dave.alvarado
Hi, I want to instruct ant that upon building a WAR file, only include certain files from my lib directory in the WEB-INF/lib directory.  However, this doesn't seem to be working    

Re: Won't Build: NoClassDefFoundError

2008-08-12 Thread Scot P. Floess
That's really odd... I'm somewhat at a loss... I'll have to think about this... Is there maybe another dependency not met? Some other jat one requires for that class? On Tue, 12 Aug 2008, dave.smith wrote: I am able to jar tf serializer.jar from the user that is running ant. /usr/share

Re: Won't Build: NoClassDefFoundError

2008-08-12 Thread dave.smith
I am able to jar tf serializer.jar from the user that is running ant. /usr/share/ant/lib has only serializer.jar which ant ==> /usr/bin/ant echo $ANT_HOME ==> /usr/share/ant I also tried running ant with ant -lib /usr/share/ant/lib/ junit. I got the same error. Thanks again, Dave Scot P. Flo

Re: Won't Build: NoClassDefFoundError

2008-08-12 Thread Scot P. Floess
Is your ANT_HOME = /usr/share/ant On Tue, 12 Aug 2008, dave.smith wrote: Hi Scot, Thanks for your fast reply. 1) Yes, I see SerializerTrace.class in there 2) Yes, it has 0644 permissions 3) No, but I exported it as /usr/share/ant and it still did not work. Scot P. Floess wrote: So, c

RE: Won't Build: NoClassDefFoundError

2008-08-12 Thread Scot P. Floess
Ah OK. Wasn't sure but had to ask :) Still begs the question...can the user read from the jar (permissions)... Or, is that jar in the classpath correctly? For example in $ANT_HOME/lib Or...is he using the -lib option? On Tue, 12 Aug 2008, Martin Gainty wrote: Scott- serializer.jar on cla

Re: Won't Build: NoClassDefFoundError

2008-08-12 Thread dave.smith
Hi Scot, Thanks for your fast reply. 1) Yes, I see SerializerTrace.class in there 2) Yes, it has 0644 permissions 3) No, but I exported it as /usr/share/ant and it still did not work. Scot P. Floess wrote: > > > So, couple of questions... > > 1) Is SerializerTrace actually in that jar? >

RE: Won't Build: NoClassDefFoundError

2008-08-12 Thread Martin Gainty
Scott- serializer.jar on classpath from xalan http://xml.apache.org/xalan-j/ HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confi

Re: Won't Build: NoClassDefFoundError

2008-08-12 Thread Scot P. Floess
So, couple of questions... 1) Is SerializerTrace actually in that jar? 2) Are the permissions such that that jar is readable by you as a user? 3) IS your ANT_HOME /usr/share/ant ? On Tue, 12 Aug 2008, dave.smith wrote: What am I missing? I have serializer.jar in /usr/share/ant/lib, but I ke

Won't Build: NoClassDefFoundError

2008-08-12 Thread dave.smith
What am I missing? I have serializer.jar in /usr/share/ant/lib, but I keep getting this error when I run ant junit: junit: BUILD FAILED java.lang.NoClassDefFoundError: org/apache/xml/serializer/SerializerTrace -- View this message in context: http://www.nabble.com/Won%27t-Build%3A--NoClassDe

RE: A way to create empty files

2008-08-12 Thread Matt Benson
--- Jim Showalter <[EMAIL PROTECTED]> wrote: > I have been reading the ant users manual and I > cannot find where the xmlns > attribute is discussed (i.e how it is used and where > it is allowed). Actually xmlns is part of XML which is partially why it is not discussed in depth in Ant's literatu

Re: A way to create empty files

2008-08-12 Thread Evgeny
I'll just stick it into my build-macros.xml file, with the above comment ... and forget about it :) On Tue, Aug 12, 2008 at 7:22 PM, Matt Benson <[EMAIL PROTECTED]> wrote: > Complex... :( To decipher the semantic implications > of the provided solution, you're giving the touch task > a resource c

Re: I can't use the task

2008-08-12 Thread Scot P. Floess
Did you install Ant Contrib? Looks to me like you haven't set up Ant Contrib? http://ant-contrib.sourceforge.net/ At the bottom of the page discusses how to do the taskdef... On Tue, 12 Aug 2008, Mike Garcia wrote: Hello, I have added the if task around some exec statements because I don'

Re: A way to create empty files

2008-08-12 Thread Matt Benson
Complex... :( To decipher the semantic implications of the provided solution, you're giving the touch task a resource collection which restricts the contents of another resource collection to those elements which do not exist, using an exists selector wrapped in a not selector. The resource colle

RE: I can't use the task

2008-08-12 Thread Loehr, Ruel
Google ant-contrib. -Original Message- From: Mike Garcia [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 11:13 AM To: user@ant.apache.org Subject: I can't use the task Hello, I have added the if task around some exec statements because I don't want them executed if a property

Re: A way to create empty files

2008-08-12 Thread Evgeny
Oy, this looks complex ... but imho it's better than having multiple targets. Thanks. On Tue, Aug 12, 2008 at 6:13 PM, Matt Benson <[EMAIL PROTECTED]> wrote: > Or, barring all these other suggestions, you could > just use Ant >= 1.7 and write: > > > > > xmlns="antlib:org.apache.tools.an

Re: Uptodate working one way only

2008-08-12 Thread Evgeny
Well, copy works great - it only copies files that changed. But in IF the files changed, I need to go to the place where all the java files are and delete ALL the java files. Because I really don't know what files will be generated, and as long as I don't copy new idl files it is okay to leave the

I can't use the task

2008-08-12 Thread Mike Garcia
Hello, I have added the if task around some exec statements because I don't want them executed if a property is set. Something like this: ... do stuff This fails to execute and I get the error message: Problem: failed to create task or type if. Do I need to install

RE: A way to create empty files

2008-08-12 Thread Jim Showalter
I have been reading the ant users manual and I cannot find where the xmlns attribute is discussed (i.e how it is used and where it is allowed). I have seen it used alot under resource collections and under antlib. Can someone point me to the manual page that describes this? Thanks, Jim -Or

RE: Uptodate working one way only

2008-08-12 Thread EJ Ciramella
Maybe I'm still not understanding, but doesn't copy only copy over bits that have changed? So you're copying the idl files to and then from that generating various java files? If the copy doesn't do anything, then again, you'll have to test for the uptodate status of the idl files and then and o

RE: A way to create empty files

2008-08-12 Thread EJ Ciramella
I hear ya about following crazy dependency trees. If you don't want targets all over the place, put it in your INIT target. -Original Message- From: Evgeny [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 3:53 AM To: Ant Users List Subject: Re: A way to create empty files It's

RE: A way to create empty files

2008-08-12 Thread Matt Benson
Or, barring all these other suggestions, you could just use Ant >= 1.7 and write: Note that the componentdef addition to Ant 1.8 will obviate the need for the ns declaration of the not (and, by inheritance, the exists) element. Sorry for the delay in providing this

Re: my build runs twice

2008-08-12 Thread Florijan Stamenkovic
Your ant seems to be running many times, not just twice... In fact, as you can see from below from the simplification I made of your build output, each target in the ant is executed once, along with all it's dependencies. I am not sure exactly why this would be happening. My first thought

RE: A way to create empty files

2008-08-12 Thread Jim Showalter
You could also write a java program to add the functionality and then add it in via taskdef. The downside is that your build file would not work on other platforms unless you included the class file that implements the task. Jim -Original Message- From: Evgeny [mailto:[EMAIL PROTECTED

Re: RE: javac .. java added as class does not exist

2008-08-12 Thread Matthias Coy
Hi again, ok, still same problem: a) >%JAVA_HOME%/bin/javac.exe Usage: javac where possible options include: ... so, JAVA_HOME is set correctly b) one of the lines [javac] foobar.java added as foobar.class doesn't exist. --> javac.exe foobar.java Note: com\eh\applets\tankgrpgraphical\TankGrp

Re: make file in build.xml

2008-08-12 Thread David Weintraub
How are you calling your build.xml? What target are you hitting? Are you calling the "compileC" target? Try changing: to That way, when you call movelib, it will first call "compileC" before executing the target movelib. -- David Weintraub [EMAIL PROTECTED] On Tue, Aug 12, 2008 at 12:08

Re: A way to create empty files

2008-08-12 Thread Kevin Jackson
Hi, > and just write one statement like dontchangetimestamponexistingfile=true"/> or something. > If you put an RFE in Bugzilla the ant devs may look at it as an addition. The semantics of unix touch though are that if the file exists, update the timestamp, so there may be resistance to change

Re: Uptodate working one way only

2008-08-12 Thread Evgeny
No one replied, perhaps I did not make myself clear. I have a problem where I have a list of files scattered all over the place .. the list is in a file. Then I have no problems copying files with and get a nice directory with all those files copied into it. But there is an task that I run on t

Re: A way to create empty files

2008-08-12 Thread Evgeny
It's not that I am worried it wont work, just too many targets makes it all messy. And then even when I myself try to decipher what goes where, I need to follow a huge tree of logic in dependencies. Since Ant is more of a functional language, I would rather avoid all that and just write one stateme