Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Basedir <...>.jar is not a directory
Basedir <...>.jar is not a directory [message #814838] Tue, 06 March 2012 23:42 Go to next message
Edward Pershwitz is currently offline Edward Pershwitz
Messages: 10
Registered: February 2012
Junior Member
Sorry for a long post with stack traces etc. but this seems to be a discrepancy between the command line vs buckminster script. What I'm missing is where to even look for an answer/fix. Here's the command line and the output that works (stolen from Hudson):

java -Dbuckminster.output.root=/home/cafebuild/.hudson/jobs/CAFE/workspace/buckminster.output -Dbuckminster.temp.root=/home/cafebuild/.hudson/jobs/CAFE/workspace/buckminster.temp -Xmx256m -jar /home/cafebuild/buckminster/buckminster/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -application org.eclipse.buckminster.cmdline.headless -data /home/cafebuild/.hudson/jobs/CAFE/workspace --loglevel info -S /home/cafebuild/.hudson/jobs/CAFE/workspace/com.cisco.ipcbu.automation.cafe.releng/buckminster.commands
INFO: resolve 'com.cisco.ipcbu.automation.cafe.releng/cafe.cquery'
INFO: Resetting target platform Buckminster Default TP
INFO: Import complete.
INFO: build
INFO: perform '-P' 'com.cisco.ipcbu.automation.cafe.releng/buckminster.properties' 'com.cisco.ipcbu.automation.cafe.releng#site.p2'
INFO: [start com.cisco.ipcbu.automation.cafe.core:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.core:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.core:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.core:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe.thirdparty:osgi.bundle$1.0.0#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.thirdparty:osgi.bundle$1.0.0#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.util:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.util:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.ui:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.ui:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.ui:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.ui:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe.ui.rm:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.ui.rm:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.ui.rm:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.ui.rm:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe.util:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.util:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe.feature:eclipse.feature$1.0.0.qualifier#manifest]
INFO: [end com.cisco.ipcbu.automation.cafe.feature:eclipse.feature$1.0.0.qualifier#manifest]
INFO: [start com.cisco.ipcbu.automation.cafe.feature:eclipse.feature$1.0.0.qualifier#feature.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.feature:eclipse.feature$1.0.0.qualifier#feature.jar]
INFO: [start com.cisco.ipcbu.automation.cafe.releng:eclipse.feature$1.0.0.qualifier#copy.subfeatures]
INFO: [end com.cisco.ipcbu.automation.cafe.releng:eclipse.feature$1.0.0.qualifier#copy.subfeatures]
INFO: [start com.cisco.ipcbu.automation.cafe.releng:eclipse.feature$1.0.0.qualifier#copy.plugins]
INFO: [end com.cisco.ipcbu.automation.cafe.releng:eclipse.feature$1.0.0.qualifier#copy.plugins]
INFO: [start com.cisco.ipcbu.automation.cafe.releng:eclipse.feature$1.0.0.qualifier#manifest]
INFO: [end com.cisco.ipcbu.automation.cafe.releng:eclipse.feature$1.0.0.qualifier#manifest]
INFO: [start com.cisco.ipcbu.automation.cafe.releng:eclipse.feature$1.0.0.qualifier#site.p2]
INFO: [end com.cisco.ipcbu.automation.cafe.releng:eclipse.feature$1.0.0.qualifier#site.p2]

The script resolves, builds, and performs site.p2 successfully. Note the following line in the logs:

INFO: perform '-P' 'com.cisco.ipcbu.automation.cafe.releng/buckminster.properties' 'com.cisco.ipcbu.automation.cafe.releng#site.p2'

The script file looks like this:

resolve com.cisco.ipcbu.automation.cafe.releng/cafe.cquery
build
perform -P com.cisco.ipcbu.automation.cafe.releng/buckminster.properties com.cisco.ipcbu.automation.cafe.releng#site.p2

However, if site.p2 action is attempted on its own (after all previous steps are performed) there is a "Basedir is not a directory" exception:


[cafebuild@ne027b-david2 workspace]$ java -Dbuckminster.output.root=/home/cafebuild/.hudson/jobs/CAFE/workspace/buckminster.output -Dbuckminster.temp.root=/home/cafebuild/.hudson/jobs/CAFE/workspace/buckminster.temp -Xmx256m -jar /home/cafebuild/buckminster/buckminster/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -application org.eclipse.buckminster.cmdline.headless -data /home/cafebuild/.hudson/jobs/CAFE/workspace --loglevel info perform -P com.cisco.ipcbu.automation.cafe.releng/buckminster.properties com.cisco.ipcbu.automation.cafe.releng#site.p2
INFO: [start com.cisco.ipcbu.automation.cafe.core:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.core:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.core:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.core:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe.thirdparty:osgi.bundle$1.0.0#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.thirdparty:osgi.bundle$1.0.0#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.util:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.util:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.ui:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.ui:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.ui:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.ui:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe.ui.rm:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe.ui.rm:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe.ui.rm:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.ui.rm:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe.util:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe.util:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.cisco.ipcbu.automation.cafe:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end com.cisco.ipcbu.automation.cafe:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start com.cisco.ipcbu.automation.cafe:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end com.cisco.ipcbu.automation.cafe:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start org.apache.commons.codec:osgi.bundle$1.3.0.v201101211617#bundle.jar]
ERROR: org.eclipse.core.runtime.CoreException: Basedir /home/cafebuild/.hudson/jobs/CAFE/workspace/.buckminster/tp/plugins/org.apache.commons.codec_1.3.0.v201101211617.jar is not a directory
org.eclipse.core.runtime.CoreException: Basedir /home/cafebuild/.hudson/jobs/CAFE/workspace/.buckminster/tp/plugins/org.apache.commons.codec_1.3.0.v201101211617.jar is not a directory

at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:108)
at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:91)
at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:200)
at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:350)
at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:145)
at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:165)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: Basedir /home/cafebuild/.hudson/jobs/CAFE/workspace/.buckminster/tp/plugins/org.apache.commons.codec_1.3.0.v201101211617.jar is not a directory
at org.apache.tools.ant.Project.setBaseDir(Project.java:848)
at org.apache.tools.ant.Project.setBasedir(Project.java:829)
at org.apache.tools.ant.helper.ProjectHelper2$ProjectHandler.onStartElement(ProjectHelper2.java:841)
at org.apache.tools.ant.helper.ProjectHelper2$RootHandler.startElement(ProjectHelper2.java:600)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3103)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:307)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:178)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.parseBuildFile(InternalAntRunner.java:348)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:634)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:496)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318)
... 25 more
Basedir /home/cafebuild/.hudson/jobs/CAFE/workspace/.buckminster/tp/plugins/org.apache.commons.codec_1.3.0.v201101211617.jar is not a directory

The jar in question is a jar, not a directory. How does Buckminster get the notion of which plugins are jars and which ones are expanded and why would it act differently performing seemingly identical operations?

Any help/insights would be greatly appreciated
Re: Basedir <...>.jar is not a directory [message #898252 is a reply to message #814838] Thu, 26 July 2012 05:07 Go to previous message
Philip Bedingfield is currently offline Philip Bedingfield
Messages: 43
Registered: August 2011
Member
I've got the same issue ... Any ideas?

ERROR: org.eclipse.core.runtime.CoreException: Basedir D:\Jenkins\jobs\GLRService\workspace\.buckminster\tp\plugins\org.apache.commons.codec_1.3.0.v201101211617.jar is not a directory
org.eclipse.core.runtime.CoreException: Basedir D:\Jenkins\jobs\GLRService\workspace\.buckminster\tp\plugins\org.apache.commons.codec_1.3.0.v201101211617.jar is not a directory
Previous Topic:App crashes first time after update (jnlp and jars) started via shortcut
Next Topic:How to obfuscate
Goto Forum:
  


Current Time: Thu Oct 02 16:36:35 GMT 2014

Powered by FUDForum. Page generated in 0.01588 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software