Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 72897 invoked from network); 18 Mar 2006 03:22:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Mar 2006 03:22:15 -0000 Received: (qmail 62999 invoked by uid 500); 18 Mar 2006 03:22:11 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 62956 invoked by uid 500); 18 Mar 2006 03:22:10 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 62945 invoked by uid 99); 18 Mar 2006 03:22:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 19:22:10 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ddevienne@gmail.com designates 64.233.182.205 as permitted sender) Received: from [64.233.182.205] (HELO nproxy.gmail.com) (64.233.182.205) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 19:22:10 -0800 Received: by nproxy.gmail.com with SMTP id n29so536561nfc for ; Fri, 17 Mar 2006 19:21:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bgoT+i2y5eo/n2/gsYOi9I29aQaXcGv1446XnVH1jjF3q0vHN625xXcgchAr09COuB/vgrINHESBhuc1BTh1CzGS4xmeYRJkWf2Q8Zw3I9wnrspApXi06OSrOMSk5titkKd/dW+ANJHHxxp2qMUDB7AS9HqL2OhEZ8fwfXJHf9M= Received: by 10.48.206.14 with SMTP id d14mr1686014nfg; Fri, 17 Mar 2006 19:21:48 -0800 (PST) Received: by 10.49.61.10 with HTTP; Fri, 17 Mar 2006 19:21:48 -0800 (PST) Message-ID: <255d8d690603171921g26be2997i456d13561c7966fa@mail.gmail.com> Date: Fri, 17 Mar 2006 21:21:48 -0600 From: "Dominique Devienne" To: "Ant Users List" Subject: Re: JUnitTask fork problem? In-Reply-To: <44100A75.9060002@informatik.uni-mannheim.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44100A75.9060002@informatik.uni-mannheim.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm confused. What's the issue, that the task somehow doesn't fork a child JVM (I'd be surprised), or that the child JVM doesn't have a security manager? If the latter, you'd probably need to explicitly tell Ant to start up the forked VM with a security manager. I vaguely remember Antoine doing work to support setting security manager for tasks, but I'm not sure the security manager would be passed down to a fork VM. Search for security manager in the doco. --DD On 3/9/06, Oliver Hummel wrote: > Dear all, > > I have a problem with installing a security manager for a JUnitTask. I > use something like the following code to call ant programmatically: > > JUnitTask junit =3D (JUnitTask) project.createTask("junit"); > junit.createJvmarg().setValue("-Djava.security.manager"); > junit.setTaskName("junit"); > junit.setFork(true); > junit.setForkMode(new JUnitTask.ForkMode("once")); > junit.setTimeout(10000); > > Testing and everything works fine, the only thing is there is obviously > no security manager installed for the test cases. I.e. printing > System.getSecurityManager in a test case delivers null and I can still > execute any command I like in the test cases. > > Seems to me there is a problem with forking here as I cannot see another > JVM starting up in the task manager when I run the program..? > > Is this a known issue? Or am I doing something fundamentally wrong here? > > Any help is greatly appreciated! > > Cheers, > > Oliver > > > > > > --------------------------------------------------------------------- > 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