ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brown, Michael (Denver)" <Michael_Br...@jdedwards.com>
Subject RE: mkdir and mapped drives / remote servers
Date Thu, 02 Oct 2003 21:51:03 GMT
You should be able to do a copy from a windows box to another windows
box on the same network.  I am doing this copy:

<target name="CopyClasses" depends="time" if="copyclasses.is.enabled">
	     <copy todir="//${networkmachine}/${timestamp}_${
Project}_${ View}/system/classes">
	     	<fileset dir="interop/delivery"/>
	     </copy>
	</target>

The only reason I couldn't do the copy and create the folders on the fly
is if I didn't have the right permissions on the networkmachine.  Hope
this helps.

Mike B

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

I don't know if I added the parameters properly, I'm using WSAD as the
dev
environment.

Here is what was spit out.  It might be a security violation within the
Jvm.
What do you think?

Nick

build-ear:
      [ear] Building ear:
C:\wsadie\workspace-imsii\sncc-ims-build\dist\IMS_133_0_TEST.ear

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
 org/apache/tools/zip/ZipEntry]
[Initializing org/apache/tools/zip/ZipEntry]
[Running static initializer for org/apache/tools/zip/ZipEntry]
[Loaded org.apache.tools.zip.ZipShort]
[Loading superclasses of org/apache/tools/zip/ZipShort]
[Preparing org/apache/tools/zip/ZipShort]
[Loaded java.lang.ThreadLocal$SecureKey from C:\Program
Files\IBM\Application Developer\jre\lib\rt.jar]
[Loading superclasses of java/lang/ThreadLocal$SecureKey]
[Preparing java/lang/ThreadLocal$SecureKey]
[Loaded sun.io.CharToByteUTF8 from C:\Program Files\IBM\Application
Developer\jre\lib\rt.jar]
[Loading superclasses of sun/io/CharToByteUTF8]
[Preparing sun/io/CharToByteUTF8]
[Loaded sun.io.MalformedInputException from C:\Program
Files\IBM\Application
Developer\jre\lib\rt.jar]
[Loading superclasses of sun/io/MalformedInputException]
[Preparing sun/io/MalformedInputException]
[Loaded java.text.ParsePosition from C:\Program Files\IBM\Application
Developer\jre\lib\rt.jar]
[Loading superclasses of java/text/ParsePosition]
[Preparing java/text/ParsePosition]
[Loaded java.lang.FloatingDecimal from C:\Program Files\IBM\Application
Developer\jre\lib\rt.jar]
[Loading superclasses of java/lang/FloatingDecimal]
[Preparing java/lang/FloatingDecimal]
[Loaded org.apache.tools.zip.ZipExtraField]
[Loading superclasses of org/apache/tools/zip/ZipExtraField]
[Loaded org.apache.tools.zip.ExtraFieldUtils]
[Loading superclasses of org/apache/tools/zip/ExtraFieldUtils]
[Preparing org/apache/tools/zip/ExtraFieldUtils]
[Initializing org/apache/tools/zip/ExtraFieldUtils]
[Running static initializer for org/apache/tools/zip/ExtraFieldUtils]
[Loaded org.apache.tools.zip.AsiExtraField]
[Loading superclasses of org/apache/tools/zip/AsiExtraField]
[Loaded org.apache.tools.zip.UnixStat]
[Loading superclasses of org/apache/tools/zip/UnixStat]
[Preparing org/apache/tools/zip/ZipExtraField]
[Preparing org/apache/tools/zip/UnixStat]
[Preparing org/apache/tools/zip/AsiExtraField]
[Initializing org/apache/tools/zip/AsiExtraField]
[Running static initializer for org/apache/tools/zip/AsiExtraField]
[Loaded sun.io.UnknownCharacterException from C:\Program
Files\IBM\Application Developer\jre\lib\rt.jar]
[Loading superclasses of sun/io/UnknownCharacterException]
[Preparing sun/io/UnknownCharacterException]
[Loaded java.lang.Shutdown from C:\Program Files\IBM\Application
Developer\jre\lib\rt.jar]
[Loading superclasses of java/lang/Shutdown]
[Preparing java/lang/Shutdown]
[Initializing java/lang/Shutdown]
[Running static initializer for java/lang/Shutdown]
[Loaded java.lang.Shutdown$Lock from C:\Program Files\IBM\Application
Developer\jre\lib\rt.jar]
[Loading superclasses of java/lang/Shutdown$Lock]
[Preparing java/lang/Shutdown$Lock]

clean-new-build-dir:
     [echo] Cleaning Distribution Directory

Total time: 18 seconds


-----Original Message-----
From: Ciramella, EJ [mailto:ECiramella@emptoris.com]
Sent: Thursday, October 02, 2003 4:22 PM
To: 'Ant Users List'
Subject: RE: mkdir and mapped drives / remote servers


Could you run with -verbose -debug flags turned on and then send the
last
part with the error?

-----Original Message-----
From: Nick Neuberger [mailto:Nick.Neuberger@sncc.com]
Sent: Thursday, October 02, 2003 5: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


- - - - - - 
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


Mime
View raw message