Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336573

Summary: Module Export doesn't work with non standard config.
Product: [Technology] Tigerstripe Reporter: Steve Jerman <stjerman>
Component: CoreAssignee: Project Inbox <tigerstripe.core-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nmehrega, yuri
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
336573 patch none

Description Steve Jerman CLA 2011-02-07 20:19:54 EST
If I set the compile output to target/classes and then try export I get this:

!SUBENTRY 1 org.eclipse.tigerstripe.workbench.ui.base 4 222 2011-02-07 18:13:12.397
!MESSAGE Internal Error
!STACK 0
java.io.IOException: SrcDir /EclipseWorkspaces/tycho-rework/tigerstripe-tycho/annotation-poc/annotation-poc-model/bin cannot be found.
	at org.eclipse.tigerstripe.workbench.internal.core.util.FileUtils.copyDir(FileUtils.java:94)
	at org.eclipse.tigerstripe.workbench.internal.core.module.packaging.ModulePackager.copyCompiledArtifacts(ModulePackager.java:357)
	at org.eclipse.tigerstripe.workbench.internal.core.module.packaging.ModulePackager.packageUp(ModulePackager.java:118)
	at org.eclipse.tigerstripe.workbench.ui.internal.export.ModuleExportWizard.internalPerformFinish(ModuleExportWizard.java:175)
	at org.eclipse.tigerstripe.workbench.ui.internal.export.ModuleExportWizard.access$0(ModuleExportWizard.java:147)
	at org.eclipse.tigerstripe.workbench.ui.internal.export.ModuleExportWizard$1.run(ModuleExportWizard.java:110)
	at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
	at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
	at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Comment 1 Navid Mehregani CLA 2011-02-08 18:06:11 EST
Specific instructions for reproducing this problem:

1) Create a Tigerstripe project called p1
2) Create the following folders in p1: 'target/classes'
3) Right click on p1 > Properties > Java Build Path > Select Source tab > Select your source folder > On the bottom of the page, select 'target/classes' as the output folder 
4) Create a couple of entities in p1
5) Open Error Log view and clear its entries
6) Export p1 as a Tigerstripe module.  Notice the entries logged in Error log view.  The project doesn't get exported as expected.
Comment 2 Anton Salnik CLA 2011-02-11 04:56:13 EST
Created attachment 188758 [details]
336573 patch
Comment 3 Yuri Strot CLA 2011-02-14 08:44:39 EST
Anton's patch applied.
Comment 4 Navid Mehregani CLA 2011-02-14 09:53:28 EST
Verified. Thanks!