ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi" <koji.sekigu...@bluemartini.com>
Subject RE: Problems with <chmod> in 1.6
Date Wed, 17 Mar 2004 06:51:33 GMT
Because <chmod> task work on only unix family OS.
To check OS family in the task, ant looks system property os.name
and path.separator. So I thought <chmod> works correctly
on Cygwin if I set environment variable ANT_OPTS as follows:

$ export ANT_OPTS="-Dos.name=unix -Dpath.separator=:"

however, due to changing path.separator ; to :, I got the following
exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no zip in
java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344)
        at java.lang.Runtime.loadLibrary0(Runtime.java:744)
        at java.lang.System.loadLibrary(System.java:815)
        at
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:48)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.zip.ZipFile.<clinit>(ZipFile.java:47)
        at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:496)
        at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:462)
        at sun.misc.URLClassPath$2.run(URLClassPath.java:253)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.misc.URLClassPath.getLoader(URLClassPath.java:242)
        at sun.misc.URLClassPath.getLoader(URLClassPath.java:219)
        at sun.misc.URLClassPath.getResource(URLClassPath.java:132)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:187)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)

any idea?

Koji


> -----Original Message-----
> From: Baz ¤Ñª° [mailto:sky_fox1@yahoo.com]
> Sent: Wednesday, March 17, 2004 11:47 AM
> To: user@ant.apache.org
> Subject: Problems with <chmod> in 1.6
>
>
> Using <chmod> in cygwin, why I cannot set the "other"s permission?
>
> <chmod perm="a+rx" type="file">
>     <fileset dir="${serverdeploy.home}/bin"/>
>     </chmod>
>
> The result is:
>
> total 5
> drwxrwx---+   2 barry    Administ        0 Mar 16 18:39 .
> drwxrwx---+  10 barry    Administ        0 Mar 16 18:39 ..
> -rwxrwx---+   1 barry    Administ      963 Mar 16 18:39 start.bat
> -rwxrwx---+   1 barry    Administ     1083 Mar 16 18:39 start.sh
> -rwxrwx---+   1 barry    Administ       75 Mar 16 18:39 stop.bat
> -rwxrwx---+   1 barry    Administ      764 Mar 16 18:39 stop.sh
>
> Please advice if i want to set the permission to 777.
>
> Thanks
>
> Baz
>
>
> ---------------------------------------------------------------------
> 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