ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Neuberger <Nick.Neuber...@sncc.com>
Subject RE: mkdir and mapped drives / remote servers
Date Fri, 03 Oct 2003 14:01:41 GMT
my bad.  thanks for pointing those out.  A combination of copy-n-paste
errors.

The ultimate problem was fixed with this:  (extra space in the dir name was
causing ant to append on the basedir.
from:
        <mkdir dir=" ${new.build.dir}"/>
to:
        <mkdir dir="${new.build.dir}"/>

Also the property assignment was a problem too.

Thanks for all the help.

Nick

-----Original Message-----
From: W. Sean Hennessy [mailto:shennessy@goldenhourdata.com]
Sent: Thursday, October 02, 2003 5:23 PM
To: 'Ant Users List'
Subject: RE: mkdir and mapped drives / remote servers


1. Did you really want to redefine that property or did you want to append?
   <property name="new.build.crud.dir"
value="${new.build.dir}${file.separator}crud"/>

1. single mkdir should suffice.
   <mkdir dir="${new.build.crud.dir}"/>

-----Original Message-----
From: Nick Neuberger [mailto:Nick.Neuberger@sncc.com] 
Sent: Thursday, October 02, 2003 2:21 PM
To: 'Ant Users List'
Subject: mkdir and mapped drives / remote servers


In my build script, I would like to copy our "build" to an archive directory
on a different windows server.  I have the
drive (U: drive) mapped on my machine.

My build failed because it can't create the directory.

Can you copy files out of the "basedir" like this is or am I using the wrong
ant task.  It looks like ant is trying to
append on the "basedir" to the path.

Any thoughts?

Thanks,

Nick Neuberger

/////////////////////ERROR//////////////////
BUILD FAILED

C:\wsadie\workspace-imsii\sncc-ims-build\package-all.xml:140: Directory
C:\wsadie\workspace-imsii\ C:\builds\133_0_TEST
creation was not successful for an unknown reason


///////////////CODE SNIPPET//////////////////////

    <property name="version.name" value="133_0_TEST"/>

    <property name="dist.dir" value="sncc-ims-build/dist"/>
    <property name="crud.dir" value="sncc-ims-build/dist/crud"/>

    <property name="new.build.dir" value="C:/builds/${version.name}"/>
	<property name="new.build.crud.dir"
value="${new.build.crud.dir}/crud"/>

    <property name="war.name" value="IMS-IIWeb.war"/>
    <property name="ear.name" value="IMS_${version.name}.ear"/>

    <target name="clean-new-build-dir" description="Creating New Build
Directory Structure">
		<echo message ="Cleaning Distribution Directory"/>    
        <mkdir dir=" ${new.build.dir}"/>
        <mkdir dir="${new.build.crud.dir}"/>
    </target>


- - - - - - 
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this
message and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please
notify the sender immediately by reply e-mail and delete this message from
your system. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


- - - - - - 
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message