Defining path variables

Hi,
I have an Inspections build running from a project file which compiles
to file://$CompileDirectory$ The build fails with the message
"There are undefined path variables in project configuration files.
In order for the project to load all path variables must be defined.:
CompileDirectory"
(Stack trace below)

Obviously to run inspections the compile directory doesn't need to be
defined so how do I get round this? Or how can I specify a nonsense
build directory to make the agent get on with it? I tried specifying the
appropriate variable as a System Property and an Environment Variable
but it didn't work.

Thanks,
R


at
com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:117)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:101)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.loadProject(ProjectManagerImpl.java:40)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:244)
at
com.intellij.codeInspection.ex.InspectionApplication.run(InspectionApplication.java:110)
at
com.intellij.codeInspection.ex.InspectionApplication$1.run(InspectionApplication.java:10)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

1 comment
Comment actions Permalink

OK I found this
http://intellij.net/forums/thread.jspa?messageID=5180225
and this
http://www.jetbrains.net/jira/browse/TW-1084
so I downloaded the patch and then adding a line to my agent's
build.properties file of the form
system.path.macro.CompileDirectory=/tmp/agentCompile
everything works.

R

0

Please sign in to leave a comment.