[jbosscache-dev] AOPC Ant task and tmp directories

Manik Surtani manik at jboss.org
Tue Feb 27 08:36:48 EST 2007


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

Lead, JBoss Cache
JBoss, a division of Red Hat

Email: manik at jboss.org
Telephone: +44 7786 702 706
MSN: manik at surtani.org
Yahoo/AIM/Skype: maniksurtani





More information about the jbosscache-dev mailing list