On Thu, 06 Dec 2001, detlef brendle [EMAIL PROTECTED] wrote:
how can I change the permissions of a Windows file ?
There is no built-in task to do that, but people have sent custom
tasks to ant-dev, you may find one in the archives.
I've been told that there is an executable named attrib that
On Wed, 5 Dec 2001, Steve Brenneis [EMAIL PROTECTED] wrote:
package
org.apache.tools.ant.taskdefs.optional.depend.constantpool does not
exist
Hmm, did you get any error messages while untarring the source archive
(the file names for the files inside this package exceed the magical
100
On Wed, 5 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote:
Thanks Frank
Tried the following, but still got the same error as in my prior
email.
exec dir=${afi.packaging.work}
executable=signtool failonerror=true
arg
On Wed, 5 Dec 2001, Feliks Shvartsburd [EMAIL PROTECTED]
wrote:
How do you recursively copy set of dirs and subdirs to target?
thanks
copy
Any problems with it?
Stefan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
On Wed, 5 Dec 2001, Anthony Rodriguez [EMAIL PROTECTED]
wrote:
Here is some of my build.xml file:
!-- Copying java to cabinet --
copy todir=${noc}\${label}\java
fileset dir=${stage.trustlib} excludes=test/**/
/copy
copy todir=${noc}\${label}\daemons\code
thanks stefan,
I will have a look in the archives.
and no theres no reason why I cant use exec. but I didnt know that there is a
chance to do this with exec.
Quoting Stefan Bodewig [EMAIL PROTECTED]:
On Thu, 06 Dec 2001, detlef brendle [EMAIL PROTECTED] wrote:
how can I change the
In my build script I setup a property with a specific classpath. Now if the
environment variable: CLASSPATH, is set before hand I need to include this
existing classpath into the specific classpath setup in the build script.
What is the best way to check if the environment variable: CLASSPATH is
On Thu, 6 Dec 2001, Hannes van der Merwe [EMAIL PROTECTED] wrote:
What is the best way to check if the environment variable:
CLASSPATH is set or not?
property environment=env /
now either env.CLASSPATH exists or it doesn't and you can use
if/unless attributes based on it.
Stefan
--
To
Maybe it is a stupid question, but how should I do that?
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Check for environment variable existence
On Thu, 6 Dec 2001, Hannes van der Merwe
Also, keep in mind that when running Ant through the wrapper scripts that
your environment classpath is already available and used by Ant and all
tasks that it runs in its own VM.
Perhaps you should discuss more about what you are planning on doing with
the CLASSPATH from the environment,
On Thu, 6 Dec 2001, Hannes van der Merwe [EMAIL PROTECTED] wrote:
Maybe it is a stupid question, but how should I do that?
Probably more a sign of a flawed documentation (patches are always
welcome).
First, define the classpath that you want to use and don't care for
the environment variable.
On Thu, 6 Dec 2001, Erik Hatcher [EMAIL PROTECTED]
wrote:
Ant provides system properties to you, and you will have
${java.class.path} available already if needed.
But this will contain classes that are not in the CLASSPATH
environment (all stuff from ANT_HOME/lib).
Stefan
--
To unsubscribe,
Use exec to call Attrib. The available attributes are hidden (h), readonly
(r), system (s), archive (a). Anyway to set the flag state attrib +r
filename. to remove attrib -r filename. to see all current flags attrib
Tim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
And tools.jar as well, which is not in ANT_HOME/lib, of course. Yup, I knew
that and should have noted that too when I mentioned it.
- Original Message -
From: Stefan Bodewig [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 7:11 AM
Subject: Re: Check for
Hello,
Using the jar task in ant.1.4.1 I am missing the top level dir
from the paths in the jar. For example if I have files and dirs like
this:-
.
./base
./base/sub
./base/sub/file1.class
./base/sub/file2.class
Then in . I run jar cf ajar.jar base
then jar tf ajar.jar we see :-
META-INF/
Try:
jar jarfile=ajar.jar basedir=. includes=base/
You might have to play with the excludes directive also.
-Original Message-
From: Roger Marlow [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 11:00 AM
To: [EMAIL PROTECTED]
Subject: Missing top level dir in jar file
On Thu, 6 Dec 2001, Marko Srdanovic [EMAIL PROTECTED] wrote:
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing else, it should
probably be
jar jarfile=ajar.jar basedir=. includes=base/**/
Stefan
--
To unsubscribe, e-mail:
Hi KC,
I'm taking the time to revisit some old bug reports that I'm not sure
whether they have been resolved.
On Sat, 10 Mar 2001, KC Baltz [EMAIL PROTECTED] wrote:
If you specify a manifest file, but do it using the wrong case, the
jar task will succeed, but the manifest file will not be
Oops, that's what you get when you don't test things first - Thanks! ;-)
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re: Missing top level dir in jar file
On Thu, 6 Dec 2001, Marko
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing else, it
should probably be
jar jarfile=ajar.jar basedir=. includes=base/**/
Unfortunately that just looks for the files under base. There's
only a directory there, so it
On Thu, 6 Dec 2001, Roger Marlow [EMAIL PROTECTED] wrote:
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing else, it
should probably be
jar jarfile=ajar.jar basedir=. includes=base/**/
Unfortunately that just looks for
Hi,
A quick question on recursion. Just out of curiosity, is there any
difference between ** and **/* in Pattern Sets? I always observe the
latter convention for recursive pattern set and file set matching in my
build files.
Matt
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL
Just a thought ...
Is there such a thing (or should there be such a thing) as a gallery of
sample build files for those new to ant? I found a few examples in
articles and was able to jumpstart from that, but seeing some of the
questions on this list, it seems that more real, genuine, working
Hi,
I find Tomcat's example very useful and well documented as a jumpstart...
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/source.html
Of course, a sample gallery would be great !
Franck
At 10:52 06.12.2001 -0600, you wrote:
Just a thought ...
Is there such a thing (or should
On Thu, 6 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote:
After changing my nshome to c\:/Progra~1/Netscape/Users/default in
my user.properties , changed the property name=nscert
value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ in my
build.xml and using arg value instead this is what I get
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing else, it
should probably be
jar jarfile=ajar.jar basedir=. includes=base/**/
Unfortunately that just looks for the files under base.
and recursively below
Hi,
the jar task seems to be messing up the classpath entry in my manifest file
(splits it onto two lines as below).
Class-Path: lib/fop.zip lib/commons-collections.zip lib/commons-digest
er.zip lib/commons-beanutils.zip lib/core.zip
anyone else seeing this problem? is there a workaround?
Yes, it certainly is a wonderful build file, but I suspect that a few
smaller ones might be more helpful to a new user. I am teaching a friend
of mine how to use ant and I think that a huge build file would
overwhelm him right now.
Would it just be more helpful to post commented build files to
Search the archives.. there was some talk last week (or maybee a week before
that, I don't know, times flies) about a project on sourceforge to do just
that.
Ylan.
Is there such a thing (or should there be such a thing) as a gallery of
sample build files for those new to ant? I found a few
I think that would be great also. I have been using a generic build file that so far
has worked on every project I have used it on and only change some property values and
I am up and running in 5 seconds.
Dean
Chappell, Simon P wrote:
Just a thought ...
Is there such a thing (or should
--- Stefan Bodewig [EMAIL PROTECTED] wrote:
On Thu, 6 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote:
After changing my nshome to c\:/Progra~1/Netscape/Users/default in
my user.properties , changed the property name=nscert
value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ in my
build.xml
As I remember the exchange it was more about creating a generic build
file. That might well be a worthy and useful project, but I'm more
interested in short, specific, commented, build files that are suitable
for beginners.
-Original Message-
From: Ylan Segal [mailto:[EMAIL PROTECTED]]
Hi,
I found it too. Bug 4682 covers it. Use the zip task and create the META-INF
dir by hand.
Cheers
Tobin.
-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 09:20
To: Ant User (E-mail)
Subject: manifest class path
Hi,
readers might be interested to know that a java api do this sort of thing
was promised, then pulled, from java 1.4:
http://developer.java.sun.com/developer/bugParade/bugs/4313887.html
...you are free to vote on the issue if you feel it is important, though
Sun's development process is most
Ed
could you send me that file please. I would like to see what is going on
there.
Thanks
--felix
-Original Message-
From: Ed Mangual [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 11:04 AM
To: 'Ant Users List'
Subject: RE: Quoting issue
I still have the same problem
Hi just installed the downloaded and installed the binary version on my windows 2000
server box. I set my path to point to the corresponding bin directory and ANT_HOME
environment variable to the ant root directory as directed. When I try to run ant -v
at the command prompt it tells me that
From: shawn [EMAIL PROTECTED]
variable to the ant root directory as directed. When
I try to run ant -v at the command prompt it tells me
that ant is not recognized as an internal or external
command, operable program or batch file.
What is the value of your PATH variable?
C:\ant\bootstrap\bin;
This is after I compiled the source
When I unzipped the binary version it was:
C:\ant\bin;
Shawn Hickey
Chief Architect
[EMAIL PROTECTED]
Direct:
707-869-1108(Direct)
707-328-0714(mobile)
Creative Explosions, Inc. (Corporate Office)
5770-A Croy Road, Morgan Hill,
From: shawn [EMAIL PROTECTED]
C:\ant\bootstrap\bin;
Hmm... Try inserting debug messages in ant.bat.
Also try 'CD'ing into the bin directory where ant.bat is
and then run it. Though this shouldn't be needed, it
will help you debug the problem better.
Magesh
--
To
Thanks Magesh. It's strange. When a cd into the bin directory and run 'ant'
or 'ant.bat' it tells me and was unexpected at this time.
If I can
Shawn Hickey
Chief Architect
[EMAIL PROTECTED]
Direct:
707-869-1108(Direct)
707-328-0714(mobile)
Creative Explosions, Inc. (Corporate Office)
5770-A
Over on the cruise control list, it has been noted that Sun's tools
are rather bad about releasing resources. As best as I can tell, jar
stabbed me in the back this morning.
There is a fork option for javac that seems to fix the problem for
it, but there is no corresponding one for jar.
Any
I can't reproduce the exact problem as I don't run
Win2K, but try removing the statements in ant.bat that
begin with rem because of the and was unexpected at
this time. that you receive. Also change the first
line to @echo on, spice up the file with some echo
statements to find out
great. I'll try that. Thanks!
Shawn Hickey
Chief Architect
[EMAIL PROTECTED]
Direct:
707-869-1108(Direct)
707-328-0714(mobile)
Creative Explosions, Inc. (Corporate Office)
5770-A Croy Road, Morgan Hill, CA 95037
ph: 408-782-6263 fax: 408-782-6253
ONIN24 Broadband Media Control Software Suite
Hello Simon,
On Thu, 6 Dec 2001 11:38:40 -0600, Chappell, Simon P
[EMAIL PROTECTED] wrote:
As I remember the exchange it was more about creating a generic build
file. That might well be a worthy and useful project, but I'm more
interested in short, specific, commented, build files that are
Hi,
I have a newbie question that I do not see on the FAQ.
While trying to compile a java directory I receive:
...Cannot use classic compiler, as it is not available A common
solution is to set the environment variable JAVA_HOME to your jdk directory.
The environment is Solaris and jdk
Try to remove ant-1.4.jar from your jdk (jre/lib/ext/ant-*.jar).
Let me know if that solves it.
Doug McNeil wrote:
Hi,
I have a newbie question that I do not see on the FAQ.
While trying to compile a java directory I receive:
...Cannot use classic compiler, as it is not available A
Rolf,
I just downloaded the best practices from the mentioned link.. I like them!.
I think this is a very good start and I have some input I want to pass to
you as well (If you are interested, of course).
Where is the conversation for this taking place? In this list? In the
sourceforge forums?
Wonderful. I'll take a closer look and get back to you.
-Original Message-
From: Rolf Katzenberger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:06 PM
To: Ant Users List
Subject: Re: build file gallery for new ant users?
Hello Simon,
On Thu, 6 Dec 2001 11:38:40 -0600,
No it's not a case-sensitive issue. I am trying to copy from
c:\ant_Build\StageTrustlib\ to the java dir in the cabinet. There are some
class files and two dirs, com and test, under StageTrustlib. I want to copy
everything under StageTrustlib excpet that test dir.
As for the other copy tasks,
Sebastien Boving wrote:
Try to remove ant-1.4.jar from your jdk (jre/lib/ext/ant-*.jar).
Let me know if that solves it.
Doug McNeil wrote:
Hi,
I have a newbie question that I do not see on the FAQ.
While trying to compile a java directory I receive:
...Cannot use classic compiler, as it
On Fri, 7 Dec 2001 04:20, Nathan Coast wrote:
Hi,
the jar task seems to be messing up the classpath entry in my manifest file
(splits it onto two lines as below).
Class-Path: lib/fop.zip lib/commons-collections.zip lib/commons-digest
er.zip lib/commons-beanutils.zip lib/core.zip
anyone
I was wondering if there's any way in Ant to set an environment variable
once before a series of exec tasks. Consider the snippet of build.xml
below that is used to set the environment variable 'CL' before executing
the command line compiler 'msdev.exe'. This XML works, but is an error
prone
There's a problem somewhere because Jars created with it don't deploy in
WLS6.1
-Original Message-
From: Peter Donald [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 14:25
To: Ant Users List
Subject: Re: manifest class path
On Fri, 7 Dec 2001 04:20, Nathan Coast
How about looking at the problem another way and extracting out
the common code into a subtarget to which you can pass a parameter
using the antcall task. Something along the lines of the following ...
target name=BuildEnvironmentPkg.make
exec executable=msdev.exe
env key=CL
Thanks Jill, that was helpful. I had been wondering if there was a way
for a target to call another target, besides using the 'depends'
attribute.
I did find a trick that uses a target's 'depends' to set properties
before calling the task that executes 'msdev.exe'. Have a look at the
chunk
there's a target called antcall which does that.
JianChuck Ma
KMV LLC
1620 Montgomery St. Suite 140
San Francisco, CA 94111
415-352-1157(w)
-Original Message-
From: Ron Coutts [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 4:48 PM
To: Ant Users List
Subject: RE: Setting
Hello,
I am trying to build the Taglibs and I always get the following error:
[style] java.lang.NoClassDefFoundError:
org/apache/xalan/xslt/XSLTProcessorFactory
However, this class is not part of any of the xalan.jar distributions so why
does it keep asking me for this class? The problem
Hello,
I am experiencing some weird behavior with the tar task on Linux. When I
run an Ant script with the fragment below, the .gz file that is created
contains a .tar[1] file rather than a .tar file. This only happens if I
execute the ant script on Linux, it works fine on Windows 2000.
Try running ant in debug mode:
ant -debug converter
It will help you understand what is going wrong. It seems like
your build script is passing some arguments to the java
task that java doesn't like.
Cheers,
Magesh
- Original Message -
From: shawn [EMAIL PROTECTED]
To: Ant Users
--- Matt Lyon [EMAIL PROTECTED] wrote:
A quick question on recursion. Just out of curiosity, is there any
difference between ** and **/* in Pattern Sets?
See the Example patterns table in the Directory-based Tasks section of
the user manual.
Diane
=
([EMAIL PROTECTED])
Doug McNeil wrote:
Sebastien Boving wrote:
Try to remove ant-1.4.jar from your jdk (jre/lib/ext/ant-*.jar).
Let me know if that solves it.
Doug McNeil wrote:
Hi,
I have a newbie question that I do not see on the FAQ.
While trying to compile a java directory I receive:
...Cannot
On Thu, 6 Dec 2001, Scott Ellsworth [EMAIL PROTECTED] wrote:
Over on the cruise control list, it has been noted that Sun's tools
are rather bad about releasing resources. As best as I can tell,
jar stabbed me in the back this morning.
We don't use command line jar for the jar task, but a
On Thu, 6 Dec 2001, Tim Dawson [EMAIL PROTECTED] wrote:
Or is the capability I'm looking for simply not present?
I'm afraid the answer is yes.
Stefan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
On Fri, 7 Dec 2001, [EMAIL PROTECTED] wrote:
However, this class is not part of any of the xalan.jar
distributions so why does it keep asking me for this class?
Did you tell it to use Xalan?
If you are using Xalan-2, you should set the processor to trax, not
xalan.
Stefan
--
To
I'm using the pathconvert target to map substrings in a path to other
substrings, of course. How can I execute one mapping more than once or in
other words: If I want to replace let say ':' with ' ', how can I map it for
every occurence of ':' ?
Cheers.
Hannes van der Merwe
Momentum Employment
65 matches
Mail list logo