| PDE build fails with optional dependencies [message #42373] | 
Sun, 25 January 2009 13:24   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
I'm trying to build an RCP application that contains a couple of JUnit  
tests and org.junit4 as optional dependency. 
 
Build fails due to missing org.junit4, even if the test cases themselves  
are not copied to the build folder: 
 
      [java] [eclipse.generateFeature] Some inter-plug-in dependencies  
have not been satisfied. 
      [java] [eclipse.generateFeature] Bundle tchok.sudoku.core: 
      [java] [eclipse.generateFeature] 	Missing Constraint:  
Bundle-RequiredExecutionEnvironment: JavaSE-1.5 
      [java] [eclipse.generateFeature] 	Optional plug-in  
org.junit4_0.0.0 is not available. 
      [java] [eclipse.generateFeature] Bundle tchok.sudoku.rcp: 
      [java] [eclipse.generateFeature] 	Missing required plug-in  
tchok.sudoku.core_0.0.0. 
 
Is there a way to build the current setup without the tests or do I need  
to move the tests to their own plugin (which would also be possible)? 
 
Thanks, 
Andi
 |  
 |  
  | 
| Re: PDE build fails with optional dependencies [message #42411 is a reply to message #42373] | 
Sun, 25 January 2009 13:37   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Update: I've tried to build with 
 
filteredDependencyCheck=true 
 
which should do this: 
 
#this property indicates whether you want the set of plug-ins and  
features to be considered during the build to be limited to the ones  
reachable from the features / plugins being built 
 
but ended up with a NPE: 
 
      [java]  
 c:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\productBuild\productBuild.xml:28:  
The following error occurred while executing this line: 
      [java]  
 C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\build.xml:64:  
The following error occurred while executing this line: 
      [java]  
 C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\templates\headless-build\customTargets.xml:12:  
The following error occurred while executing this line: 
      [java]  
 C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\productBuild\allElements.xml:10:  
The following error occurred while executing this line: 
      [java]  
 C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\genericTargets.xml:88:  
java.lang.NullPointerException 
 
I've read that some filteredDependencyCheck bugs are solved in 3.5-  
would that be the way to go? 
 
On 25.01.2009 19:24, Andreas Goetz wrote: 
> I'm trying to build an RCP application that contains a couple of JUnit 
> tests and org.junit4 as optional dependency. 
> 
> Build fails due to missing org.junit4, even if the test cases themselves 
> are not copied to the build folder: 
> 
> [java] [eclipse.generateFeature] Some inter-plug-in dependencies have 
> not been satisfied. 
> [java] [eclipse.generateFeature] Bundle tchok.sudoku.core: 
> [java] [eclipse.generateFeature] Missing Constraint: 
> Bundle-RequiredExecutionEnvironment: JavaSE-1.5 
> [java] [eclipse.generateFeature] Optional plug-in org.junit4_0.0.0 is 
> not available. 
> [java] [eclipse.generateFeature] Bundle tchok.sudoku.rcp: 
> [java] [eclipse.generateFeature] Missing required plug-in 
> tchok.sudoku.core_0.0.0. 
> 
> Is there a way to build the current setup without the tests or do I need 
> to move the tests to their own plugin (which would also be possible)? 
> 
> Thanks, 
> Andi 
>
 |  
 |  
  | 
| Re: PDE build fails with optional dependencies [message #590474 is a reply to message #42373] | 
Sun, 25 January 2009 13:37   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Update: I've tried to build with 
 
filteredDependencyCheck=true 
 
which should do this: 
 
#this property indicates whether you want the set of plug-ins and  
features to be considered during the build to be limited to the ones  
reachable from the features / plugins being built 
 
but ended up with a NPE: 
 
      [java]  
 c:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\productBuild\productBuild.xml:28:  
The following error occurred while executing this line: 
      [java]  
 C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\build.xml:64:  
The following error occurred while executing this line: 
      [java]  
 C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\templates\headless-build\customTargets.xml:12:  
The following error occurred while executing this line: 
      [java]  
 C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\productBuild\allElements.xml:10:  
The following error occurred while executing this line: 
      [java]  
 C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\genericTargets.xml:88:  
java.lang.NullPointerException 
 
I've read that some filteredDependencyCheck bugs are solved in 3.5-  
would that be the way to go? 
 
On 25.01.2009 19:24, Andreas Goetz wrote: 
> I'm trying to build an RCP application that contains a couple of JUnit 
> tests and org.junit4 as optional dependency. 
> 
> Build fails due to missing org.junit4, even if the test cases themselves 
> are not copied to the build folder: 
> 
> [java] [eclipse.generateFeature] Some inter-plug-in dependencies have 
> not been satisfied. 
> [java] [eclipse.generateFeature] Bundle tchok.sudoku.core: 
> [java] [eclipse.generateFeature] Missing Constraint: 
> Bundle-RequiredExecutionEnvironment: JavaSE-1.5 
> [java] [eclipse.generateFeature] Optional plug-in org.junit4_0.0.0 is 
> not available. 
> [java] [eclipse.generateFeature] Bundle tchok.sudoku.rcp: 
> [java] [eclipse.generateFeature] Missing required plug-in 
> tchok.sudoku.core_0.0.0. 
> 
> Is there a way to build the current setup without the tests or do I need 
> to move the tests to their own plugin (which would also be possible)? 
> 
> Thanks, 
> Andi 
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.04965 seconds