Bug 194733 - [releng] org.eclipse.rse.tests fails to build when imported with source folders
Summary: [releng] org.eclipse.rse.tests fails to build when imported with source folders
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Martin Oberhuber CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on: 194740 219696
Blocks: 264439
  Show dependency tree
 
Reported: 2007-06-28 06:34 EDT by Martin Oberhuber CLA
Modified: 2009-02-10 18:08 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2007-06-28 06:34:24 EDT
With the TM 2.0 Release RSE-SDK.zip installed into Eclipse 3.3 SDK:

File > Import > Plug-In-Development > Projects with Source Folders > org.eclipse.rse.tests

The imported plugin fails to build, because default project settings are Java 1.4 compliance without "assert". Workaround: Go to Project Properties, Java Compiler, JDK Compliance and set the following:
   Disable "Use default compliance settings"
   Generated .class compatibility = 1.4
   Source compatibility = 1.4

I think that in order to fix this, .settings/org.eclipse.jdt.core.prefs file should be part of the source build for all those projects that use Java 1.4 with assert.

For most projects it won't be much of an issue because the sources are not meant to be built anyways; but for the tests it is, because "Import with Source Folders" is necessary in order to get the preconfigured *.launch file for running the Unit Tests under PDE out of a workspace.
Comment 1 Martin Oberhuber CLA 2008-02-13 17:20:37 EST
Requirement to import with source folders is only because of bug 194740, so somehow one depends on the other.
Comment 2 Martin Oberhuber CLA 2008-02-20 18:08:48 EST
Since TM 3.0M5, the build.properties and .settings/ files are included in the source build, but it seems that there is Platform / PDE bug 219696 which overrides the settings upon importing with source folders.

I verified that the build.properties file is correctly included in the source zip, but PDE does not import it properly.
Comment 3 Martin Oberhuber CLA 2008-08-19 11:06:18 EDT
This works correctly with Eclipse SDK 3.4