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
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
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
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
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
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
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
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?
>
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
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
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
--- 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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
30 matches
Mail list logo