Sven Köhler | 1 Oct 2002 02:22
Picon

Re: pattern test/*/**

the attached test-case creates 3 jar which show the following:

test1.jar: (just a test)
the pattern test/** matches the folder test/ itself and it's contents

test2.jar: (BUG)
this jar does not contain test/test2.txt although the pattern test/*/** 
shouldn't match against it.

test3.har: (BUG)
this jar does not contain test3.txt although the pattern test3.txt/** 
shouldn't match against any file-name but only directories.

each of the pattern is used to exclude stuff from the created jar.

suggestion:
1) any pattern like a/** matches the folder a itself (but not a file 
called a) and any file/folder starting with a/ (as prooven with 
test1.jar above, and it's even a statement in ant's docs i think)
2 patterns like a/*/** should be matched partly:
if a/b/c is matched against a/*/**, the b matches the first *.
afterwords a/b/c should be matched against a/b/** (the * is replaced by 
it's match)

regards,
   Sven

Stefan Bodewig wrote:
> On Sun, 29 Sep 2002, Sven Köhler <skoehler <at> upb.de> wrote:
> 
(Continue reading)

Tammy Croteau | 1 Oct 2002 04:15
Picon
Favicon

Problems building EJBs

Hi,

I have an ant build task that build EJBs using Bluestone.  Everything
compiles and builds, however the final step of the EJB  build process is
to copy the jar file to the target destination.  The copy fails with a
"file in use" error.  I am forking during the java call to build the
EJBs and have also tried introducing a sleep to ensure that all file
locks have been released.  This process fails on some machines and
succeeds on others - the pattern seems to be fairly random.

        <java
classname="com.bluestone.gui.ejb11.deploymentdescriptor.generateEjbModules"
fork="yes" failonerror="${failonerror}">
            <arg line="${tmplib}/${NOEJB}.jar ${tmplib}/${EJB}.jar"/>
            <classpath>
                <path refid="classpath.jdk"/>
                <path refid="classpath.jdk_ext"/>
                <path refid="classpath.bluestone"/>
                <path refid="classpath.bluestoneSAclasses"/>
            </classpath>
        </java>
    <copy todir="${JAR_DIR}" file="${tmplib}/${EJB}.jar"/>

Any suggestions on how to fix the above problem?

Thanks!
--tammy
Dushyant Shrivastava | 1 Oct 2002 06:01

Starting JBoss from ANT


Hi,
I had posted a message earlier about running JUnit tests inside the same VM as JBoss so as to enable the testing of local interfaces and I did get a few responses back. Thanks everyone!

Now one of the most common response was to start Jboss environment from within my tests.Hence i started by adding the following lines in my build.xml to start JBoss server

.
   <!-- =================================================================== -->
   <!-- Starts up JBoss                                                     -->
   <!-- =================================================================== -->
  
     <target name="runjboss" depends="init">
          <exec dir = "${jboss.home}/bin"
         executable = "${jboss.home}/bin/run.bat"
           os = "Windows 2000">
          </exec>   
    </target>

However, now it starts JBoss but then does not execute any tasks after this one as JBoss just holds on to the VM. Exec task does not support the FORK option either, but in any case I do not wish to use the fork option as it will beat the whole purpose of running the tests inside the same JVM as JBoss. Does anyone has any idea how to get around this problem?

P.S I know Cactus is one of the way out but at the moment, my project team is not too keen on trialling out another new tool and Junit would be the easiest way for our implementation.

In short I would apprecate if anyone has already done this and could give me specific directions or advise me on how to run the JUnit tests inside the same VM as JBoss so that I can test my local interfaces as well!

Also attached is my build.xml file for anyone who wants to investigate this further,

Thanks a lot in advance,

Cheers
Dushy
______________________
DUSHYANT SHRIVASTAVA
Software Engineer

YAMBAY

tel      +61 (0) 8 9323 6999
mob  +61 (0) 402 902 652
fax     +61 (0) 8 9325 2688
web   www.yambay.com

Yambay Technologies Pty Ltd
7th Floor, The Victoria, 14-16 Victoria Ave, Perth. WA, 6000, Australia
_________________________________________________________________________________________________

This message and any files transmitted with it are confidential and are intended solely for the use of those persons to
whom the message is addressed. If you have received this message in error, please destroy and delete this
message from your computer. Any unauthorised form of reproduction of this message or any files transmitted with
it is strictly prohibited. yambay does not make any warranty concerning the security of any information electronically
transmitted and disclaims all liability for the proper and complete transmission of any information contained or purportedly
contained in this message, nor for any delay in its receipt. If you receive this message in error please notify the sender.
_________________________________________________________________________________________________
<<build.xml>>

Attachment (build.xml): text/xml, 12 KiB
--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>
tran.huynh | 1 Oct 2002 07:54

RE: bootclasspath

Thank you.

> -----Message d'origine-----
> De: Dominique Devienne [mailto:DDevienne <at> lgc.com]
> Date: lundi 30 septembre 2002 18:15
> À: 'Ant Users List'
> Objet: RE: bootclasspath
> 
> 
> Fork it, and specify the appropriate <jvmargs>, as you would 
> in the command
> line. --DD
> 
> -----Original Message-----
> From: tran.huynh <at> fr.thalesgroup.com 
> [mailto:tran.huynh <at> fr.thalesgroup.com] 
> Sent: Thursday, September 26, 2002 4:27 AM
> To: ant-user <at> jakarta.apache.org
> Subject: bootclasspath
> 
> Hello all,
> 
> Is there a way to set the bootclasspath for the ANT java task
> (as in ANT javac task) ?
> 
> I need to add some bootstrap classes to the JVM before running
> my Java class.
> 
> Thank you for any replies.
> Tran
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help <at> jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
<mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>
Stefan Bodewig | 1 Oct 2002 08:05
Picon
Favicon
Gravatar

Re: Problems using

<http://jakarta.apache.org/ant/faq.html#shell-redirect-2>
Stefan Bodewig | 1 Oct 2002 08:10
Picon
Favicon
Gravatar

Re: Zip update problem in Ant1.5.1Beta1

On Mon, 30 Sep 2002, Rob Walker <robw <at> softsell.com> wrote:

> The "update" flag on the <zip> tasks seems to have been amended, and
> in 1.5.1 it will not update a zip unless the zip file date is older
> than the file attempting to be updated.

Uhm, yes, sort of.

<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10755>

In 1.4.1 it didn't work (it would always update), in 1.5.1 it uses the
same logic as update="false", i.e. compare the files to add to the
archive itself, which is obviously non-intuitive.

This is rather high on my list for Ant 1.5.2 (if there should be one)
or 1.6.

Stefan
Boucart_Nick | 1 Oct 2002 10:36

RE: TelnetTask help needed!

Maybe you can try the reads and writes with their string attribute:

<telnet server="localhost">
	  <read  string="C:\>"/>
	  <write string="dir"/>
	  <read  string="C:\>"/>
</telnet>

Hope this helps,

Nick.

-----Original Message-----
From: Woo, Chen Ching [mailto:cwoo <at> spss.com]
Sent: Monday, September 30, 2002 9:16 PM
To: Ant Users List
Subject: TelnetTask help needed!

I've the following script to use the Telnet task using Ant1.5 on win2000:

<project name="telnetTest" default="telnet">
<target name="telnet">
	<telnet server="localhost">
	  <read>C:\></read>
	  <write>dir</write>
	  <read>C:\></read>
	</telnet>
  </target>
</project>

Ant seems to be waiting for the 'C:\>' input stream forever. I know I must
have
done something wrong in the <read> sub-task.

Any help will be greatly appreciated.

Thanks.

chen.

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>
Bob Hays | 1 Oct 2002 13:50

RE: ANT and ClearCase integration

There's an optional clearcase task - we use it at work.  It will do basic
checkout/checkin but nothing more.  The source code is available (of
course).

If you want some details, the task connects to cleartool and executes
commands under the hood.  There is no reason this task couldn't be extended
to include other common clearcase automated tasks (like making branches),
but that would be coding exercise (I've looked and almost started once, but
just can't find the time right now).

Hope that helps.  Have fun! - Bob

-----Original Message-----
From: suu_quan <at> non.agilent.com [mailto:suu_quan <at> non.agilent.com]
Sent: Monday, September 30, 2002 3:39 PM
To: ant-user <at> jakarta.apache.org
Subject: RE: ANT and ClearCase integration

No, <exec> is not good enough. that's why he asked the question.
I've heard of some clearcase tasks. If they work the way CtCmd or CAL work,
then it is the answer.

I haven't used the clearcase tasks, so I cannot comment.
Would like to know from people who have used them though!

Suu quan
Agilent Technologies

> -----Original Message-----
> From: Alexey Solofnenko [mailto:A.Solofnenko <at> mdl.com]
> Sent: Monday, September 30, 2002 12:10 PM
> To: 'Ant Users List'
> Subject: RE: ANT and ClearCase integration
>
>
> Why <exec> is not enough? Provided tasks do not cover all
> needed commands.
>
> - Alexey.
>
> --
> { http://trelony.cjb.net/   } Alexey N. Solofnenko
> { http://www.inventigo.com/ } Inventigo LLC
> Pleasant Hill, CA (GMT-8 usually)
>
>
> -----Original Message-----
> From: haynesfr <at> WellsFargo.COM [mailto:haynesfr <at> WellsFargo.COM]
> Sent: Monday, September 30, 2002 12:07 PM
> To: ant-user <at> jakarta.apache.org
> Subject: ANT and ClearCase integration
>
> Does any one know of any good references for using ANT &
> ClearCase together.
>
> Frederick Haynes
> Operations Systems Engineer
> 415 396 2910

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>
Woo, Chen Ching | 1 Oct 2002 16:09
Favicon

RE: TelnetTask help needed!

Thanks Nick but it still doesn't work. 
Has anyone ever tested this task on Windows ?

-----Original Message-----
From: Boucart_Nick <at> emc.com [mailto:Boucart_Nick <at> emc.com]
Sent: Tuesday, October 01, 2002 3:37 AM
To: ant-user <at> jakarta.apache.org
Subject: RE: TelnetTask help needed!

Maybe you can try the reads and writes with their string attribute:

<telnet server="localhost">
	  <read  string="C:\>"/>
	  <write string="dir"/>
	  <read  string="C:\>"/>
</telnet>

Hope this helps,

Nick.

-----Original Message-----
From: Woo, Chen Ching [mailto:cwoo <at> spss.com]
Sent: Monday, September 30, 2002 9:16 PM
To: Ant Users List
Subject: TelnetTask help needed!

I've the following script to use the Telnet task using Ant1.5 on win2000:

<project name="telnetTest" default="telnet">
<target name="telnet">
	<telnet server="localhost">
	  <read>C:\></read>
	  <write>dir</write>
	  <read>C:\></read>
	</telnet>
  </target>
</project>

Ant seems to be waiting for the 'C:\>' input stream forever. I know I must
have
done something wrong in the <read> sub-task.

Any help will be greatly appreciated.

Thanks.

chen.

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>
Keith Hatton | 1 Oct 2002 16:20

RE: TelnetTask help needed!

Check you have the latest Win2k service packs.
I've seen problems scripting telnet sessions on the plain Win2k server installation (though that wasn't
using Ant).

Keith

-----Original Message-----
From: Woo, Chen Ching [mailto:cwoo <at> spss.com]
Sent: 01 October 2002 15:09
To: Ant Users List
Subject: RE: TelnetTask help needed!

Thanks Nick but it still doesn't work. 
Has anyone ever tested this task on Windows ?

-----Original Message-----
From: Boucart_Nick <at> emc.com [mailto:Boucart_Nick <at> emc.com]
Sent: Tuesday, October 01, 2002 3:37 AM
To: ant-user <at> jakarta.apache.org
Subject: RE: TelnetTask help needed!

Maybe you can try the reads and writes with their string attribute:

<telnet server="localhost">
	  <read  string="C:\>"/>
	  <write string="dir"/>
	  <read  string="C:\>"/>
</telnet>

Hope this helps,

Nick.

-----Original Message-----
From: Woo, Chen Ching [mailto:cwoo <at> spss.com]
Sent: Monday, September 30, 2002 9:16 PM
To: Ant Users List
Subject: TelnetTask help needed!

I've the following script to use the Telnet task using Ant1.5 on win2000:

<project name="telnetTest" default="telnet">
<target name="telnet">
	<telnet server="localhost">
	  <read>C:\></read>
	  <write>dir</write>
	  <read>C:\></read>
	</telnet>
  </target>
</project>

Ant seems to be waiting for the 'C:\>' input stream forever. I know I must
have
done something wrong in the <read> sub-task.

Any help will be greatly appreciated.

Thanks.

chen.

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help <at> jakarta.apache.org>

Gmane