ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Usage/projecthelp failing
Date Fri, 19 Jul 2002 16:04:29 GMT
Yeah, that would be my bet too. You could always add the fork='true'
attribute to <java>, and see if NetBeans like that better. --DD

-----Original Message-----
From: Keith Hatton [mailto:khatton@axiomsystems.com] 
Sent: Friday, July 19, 2002 10:44 AM
To: Ant Users List; Mike Cepek
Subject: RE: Usage/projecthelp failing

I guess Ant is trying to call System.exit() but as it's running in the same
VM as NetBeans, and NetBeans has a security manager to catch that kind of
thing, it's not allowed.

Keith


-----Original Message-----
From: Mike Cepek [mailto:mcepek@smsi.com]
Sent: 19 July 2002 16:37
To: Ant Users List
Subject: RE: Usage/projecthelp failing


Update:  this failure seems specific to NetBeans (3.3.1).  Running Ant
from the command line in Win2KPro and Linux to NOT show this exception.

So given that, anyone have any idea why Ant is tripping this NetBeans
security exception upon exit?


-----Original Message-----
From: Mike Cepek [mailto:mcepek@smsi.com]
Sent: Friday, July 19, 2002 10:28 AM
To: Ant Users List
Subject: Usage/projecthelp failing

Dominique Devienne <DDevienne@lgc.com> wrote:

> ... to get an help or using target to use the
> built-in -project of Ant (which seems to be the
> ultimate goal here), simply do (as posted a few
> weeks ago, with output for Ant 1.4.1 and 1.5beta):
>
>  <target name="usage">
>    <java classname="org.apache.tools.ant.Main">
>      <arg value="-projecthelp" />
>      <arg value="-buildfile" />
>      <arg value="${ant.file}" />
>    </java>
>  </target>

I tried exactly this (cut-n-paste).  It runs (and is MUCH faster), but
ends with this Ant output:

org.netbeans.core.execution.ExitSecurityException
        at
org.netbeans.core.execution.TopSecurityManager.checkExitImpl(TopSecurity
Manager.java:95)
        at
org.netbeans.core.execution.TopSecurityManager$PrivilegedCheck.run(TopSe
curityManager.java:458)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.netbeans.core.execution.TopSecurityManager$PrivilegedCheck.check(Top
SecurityManager.java:483)
        at
org.netbeans.core.execution.TopSecurityManager$PrivilegedCheck.checkExit
(TopSecurityManager.java:471)
        at
org.netbeans.core.execution.TopSecurityManager.checkExit(TopSecurityMana
ger.java:78)
        at java.lang.Runtime.exit(Runtime.java:91)
        at java.lang.System.exit(System.java:701)
        at org.apache.tools.ant.Main.start(Main.java:162)
        at org.apache.tools.ant.Main.main(Main.java:176)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:124)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:305)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:127)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:88)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:2
77)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)
BUILD FAILED

Any ideas what this is all about?

I tried to find the original thread mentioned by Dominique, in the hopes
of finding this problem solved, but couldn't spot it.

Thanks.


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



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


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

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


Mime
View raw message