[jboss-jira] [JBoss JIRA] Closed: (JBAOP-369) AOPC should use -Djava.io.tmpdir instead of the default /tmp
Kabir Khan (JIRA)
jira-events at lists.jboss.org
Tue Feb 27 15:37:40 EST 2007
[ http://jira.jboss.com/jira/browse/JBAOP-369?page=all ]
Kabir Khan closed JBAOP-369.
----------------------------
Resolution: Done
The AOPC task will now honour the java.io.tmpdir system property
<aopc compilerclasspathref="aop.task.classpath">
<sysproperty key="java.io.tmpdir" value="/somewhere/other/than/default/tmp/folder"/>
<classpath refid="aop.task.classpath"/>
<classpath path="${build.tests.classes}"/>
<src path="${build.tests.classes}"/>
<include name="org/jboss/test/aop/declare/**"/>
<include name="org/jboss/test/aop/annotated/declare/**"/>
<aoppath path="${source.res}/test/declare/jboss-aop.xml"/>
<aopclasspath path="${build.tests.classes}"/>
</aopc>
> AOPC should use -Djava.io.tmpdir instead of the default /tmp
> ------------------------------------------------------------
>
> Key: JBAOP-369
> URL: http://jira.jboss.com/jira/browse/JBAOP-369
> Project: JBoss AOP
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 2.0.0.alpha3, 1.5.4.SP2
> Reporter: Kabir Khan
> Assigned To: Kabir Khan
> Fix For: 1.5.5.GA, 2.0.0.alpha4
>
>
> Guys,
> I'm seeing something with the AOPC ant task when running on the lab servers (dev02). It seems to hardcode using /tmp as a temp directory rather than java.io.tmpdir (which i've set to /home/msurtani/tmp in the example below).
> java.lang.RuntimeException: java.io.IOException: Permission denied
> at org.jboss.aop.ant.AopC.logAndAddFilesToCompile(AopC.java:488)
> at org.jboss.aop.ant.AopC.execute(AopC.java:328)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
> at org.apache.tools.ant.Main.runBuild(Main.java:673)
> at org.apache.tools.ant.Main.startAnt(Main.java:188)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> Caused by: java.io.IOException: Permission denied
> at java.io.UnixFileSystem.createFileExclusively(Native Method)
> at java.io.File.checkAndCreate(File.java:1345)
> at java.io.File.createTempFile(File.java:1434)
> at java.io.File.createTempFile(File.java:1471)
> at org.jboss.aop.ant.AopC.logAndAddFilesToCompile(AopC.java:457)
> ... 11 more
> Probably caused by QA locking down /tmp:
> [msurtani at dev02 JBossCache200]$ touch /tmp/test.file
> touch: creating `/tmp/test.file': Permission denied
> [msurtani at dev02 JBossCache200]$
> Any plans to change this?
> Cheers,
> --
> Manik Surtani
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list