Hello,
What is the best way to create a zip containing an empty directory without
having to create an empty directory on disk.
I tried the following way:
But as the fileset is empty, no directory entry for 'inside/emptydir' is added
in the zip.
Have you got a solution ?
Thank you i
You have to think about selectors like a SQL "WHERE".
Without a selector you´ll get all
select * from files
and with selectors you´ll get only a part of that
select * from files WHERE name="foo"
but your logig was
select * from files WHERE name="foo" and name="bar"
cheers
Jan
> -
Ok, then I would extend the -class and preset some values :-)
Jan
> -Ursprüngliche Nachricht-
> Von: Simon Chappell [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 29. März 2005 16:02
> An: Ant Users List
> Betreff: Re: Executing a command on a Unix/Linux box
>
> Not all of us are in
I'm resending this; the original note bounced back due to a problem with my
ISP.
Rhino
- Original Message -
From: "Rhino" <[EMAIL PROTECTED]>
To: "Ant Users List"
Sent: Tuesday, March 29, 2005 8:22 PM
Subject: Re: setting project classpath from a task
>
> - Original Message -
How do you have your p4 client setup? You should ensure that your
fileset command is referencing files within the directories mapped in
your client view.
IE, if I have the following in my client:
Client: emoon_lt
Root: /home/emoon/src/
View: //depot/project1/... //emoon_lt/project1/...
I should b
bingo!! worked like a charm.
thanks much!
--e--
Doklovic, Jonathan wrote:
I had a similar issue.
Here's what works for me:
In your Task, set the path like this:
Path myPath = new Path(getProject(), somePathString);
myPath.setProject(getProject()); // you MUST do this or it doesn't seem to
set the
I had a similar issue.
Here's what works for me:
In your Task, set the path like this:
Path myPath = new Path(getProject(), somePathString);
myPath.setProject(getProject()); // you MUST do this or it doesn't seem to
set the ref properly
getProject().addReference("my.pathRef", myPath);
Then in yo
Sorry I sent this to the wrong list...please ignore
:-)
--- Ninju Bohra <[EMAIL PROTECTED]> wrote:
>
> --- Ninju Bohra <[EMAIL PROTECTED]> wrote:
> > Date: Tue, 29 Mar 2005 11:43:55 -0800 (PST)
> > From: Ninju Bohra <[EMAIL PROTECTED]>
> > Subject: Re: [Cruisecontrol-user] Using import in
> > conf
--- Ninju Bohra <[EMAIL PROTECTED]> wrote:
> Date: Tue, 29 Mar 2005 11:43:55 -0800 (PST)
> From: Ninju Bohra <[EMAIL PROTECTED]>
> Subject: Re: [Cruisecontrol-user] Using import in
> config.xml
> To: "Pascal Giard (QC/EMC)"
> <[EMAIL PROTECTED]>
>
> I didn't think was a valid element in a
> conf
Got this working.
When I compiled the source of ant1.6.2, the class MimeMailer.class was not
compiled. Had to compile the class using Eclipse and then manually inserted
MimeMailer.class into ant.jar.
Also had to add charset="iso-8859-1" into the mail task, now everything
works ok.
Is this a know
Greetings
I have some ant scripts that manage archiving files between NT servers in
our production environment. A while back the move task began failing with
an error related to deleting the source file (see below)
[move] Warning: Unable to delete file \\server\foo\bar.log
Under ant 162 wh
"I have installed jdk 1.4.2_07 and also java runtime 1.5 for Tomcat 5.5.
Tomcat requires at least a java runtime time 1.5."
That's not entirely true. We use Tomcat 5.5 with jdk 1.4.2 - you just have
to get the 5.5.x Compat binary as well (available from tomcat).
Ben Burgess
TIAA-CREF
-Origi
Hi,
I have a task that maintains dependent jars for a project, and would like to
be able to set a classpath from within the task that the project would use
for compiling.
I've tried declaring a element with a refid, and then setting the
value for that refid from within the task by using projec
Hello,
change with
> TIA for any help!
>
>
--
>
>
>
> default="do-test" basedir=".">
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> />
>
>
Not doing any test but you should use an selector
and not an selector (a file cannot be named "foo" and "bar").
Also for a simple selection like this one should just use:
or should that be
to get any file named "foo" in any of the subdirectories of ${basedir}.
Peter
Holger Rauch wrote:
Hi
Hi!
I'm using Ant 1.6.2 on Linux and having trouble with selectors in a fileset.
In the following small build file "foo" and "bar" are NOT included in the
fileset even though these two files actually exist. Unfortunately, running
"ant -d" doesn't give me additional info and reading the Ant manual
Thanx,
--- [EMAIL PROTECTED] wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
> I wouldnt write a task for "just" executing that one
> liner.
>
>
> Jan
>
>
> > -Ursprüngliche Nachricht-
> > Von: Ninju Bohra [mailto:[EMAIL PROTECTED]
> >
I am trying to use p4add for the first time. I know you have to do a
p4change to create a new changelist, do the add to that changelist, and then
do a p4submit to submit the changelist. But how do I tell p4add where in
the Perforce depot to add the file? I don't see a option to specify the
view.
Not all of us are in a position to use ant 1.6. For example, my
employer still mandates 1.5.1.
On Tue, 29 Mar 2005 08:33:57 +0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
...snip...
> I wouldnt write a task for "just" executing that one liner.
>
> Jan
...snip...
---
I am trying to send an email with an attachment using the Any Mail task.
If I use encoding=uu, it send the email but the attachment is included in
the body of the email.
If I use encoding=mime, I get :-
Exception caught: C:\tempFix\build.xml:12: Failed to initialise encoding:
mime
C:\tempFix\bui
Yves Martin wrote:
Upayavira <[EMAIL PROTECTED]> writes:
1) Every time I use my task, I have to pass the task the classpath
definition, as the task needs to create a new classloader with which to run
my application. Is there a way to remove the necessity to mention the
classpath, deriving it from
David,
according to Javadocs[1] Start ant task implements the
/start command, supported by the Tomcat manager
application. Then from manager docs[2] we read that
/start command Signal a stopped application to
restart, and make itself available again...
For starting and stopping the vary Tomcat se
junit and ant with classloaders is always fun.
I cannot help with the first problem, but the second
should be fixed in ant 1.6.3
com.ibm.md.tse.dmiw.security.logic.SecurityControlTableLogicImplTestCase
BUILD FAILED
C:\build.xml:71:
org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultForm
There could be several reasons for asking here
- better response
- no mailing list on the other side
- not registered to the other side
- forgotten to use the other side
But you´re right. Usually you should use the vendors mailing list (here
Tomcat).
But we arent so strict with that ... but then:
Maybe I'm nuts, but I would think that questions about the Tomcat tasks
that are shipped with Tomcat should be directed to the Tomcat mailing
list.
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/p
Upayavira <[EMAIL PROTECTED]> writes:
> 1) Every time I use my task, I have to pass the task the classpath
> definition, as the task needs to create a new classloader with which to run
> my application. Is there a way to remove the necessity to mention the
> classpath, deriving it from the one use
David <[EMAIL PROTECTED]> writes:
> Dear Members,
>
> I am trying to interact with the Tomcat server throught ant, it works
> for me for the list command, but I can't start or stop the server.
Hello,
I'm not sure at all but I think the 'start' and 'stop' tasks are designed to
start or stop
The stacktrace shows that the Ant task tries to open a socket connection to
Tomcat.
So it should be possible to run Ant and Tomcat on different JVMs. Ant
requires at least
1.2 (dont know what the Tomcat tasks need). Same for Tomcat - I dont know.
But that should
be described in Tomcats install note
Dear Members,
I am trying to interact with the Tomcat server throught ant, it works for me
for the list command, but I can't start or stop the server.
I am using the following target invocation:
http://localhost:8080/manager";
username= "admin"
password= "tomcat"
path
Hi all,
I have written my own task. Here's how a section of my build.xml might look:
ownerName="user1"/>
The task itself is stored in a different lib directory, not on Ant's own
classpath. Now, this works, but it feels a bit clumsy. I therefore have
two questions:
On Tue, 2005-03-29 at 09:40, David wrote:
> Dear Members,
>
> I am looking where are the install, reload, remove and list tasks documented,
> I don't see them on the Apache Ant User Manual (Core and Optional Tasks).
>
Tomcat javadoc
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/d
Dear Members,
I am looking where are the install, reload, remove and list tasks documented, I
don't see them on the Apache Ant User Manual (Core and Optional Tasks).
Thanks in advance,
David Leal
-
Do you Yahoo!?
Make Yahoo! your home page
32 matches
Mail list logo