Results 1 to 1 of 1
- 01-29-2009, 10:43 AM #1
Member
- Join Date
- Jan 2009
- Posts
- 3
- Rep Power
- 0
Same source file but different source folders for different build configurations?
Hello
As per the title I would like different source code folders for different configurations - but with the same source file.
For example, imagine you have an application that could have demo mode functionality, instead of using preprocessing which can get messy one could have the following structure:
src
demo-mode
on
demo-mode.java
off
demo-mode.java
One issue is the package name. Eclipse assumes that package name for "demo-mode.java" in each folder should correspond to its folder structure, but really what we want is a package name such as:
org.someorg.someapp;
in each of those source files. We then want to include the appropriate source file based on a build configuration of some sort.
I have seen this used before but not sure how it was done. I remember vaguely it had to do with what's included on the project classpath.
Will Eclipse be able to create/store such configurations or does this require some manual tweaking from something such as ant?
I have been searching for info on this but cant seem to find a solution, any hints would be much appreciated.
Regards
Amin
Similar Threads
-
Build Javadoc: remembering a selected set of source files
By jhsachs in forum EclipseReplies: 0Last Post: 01-27-2009, 07:14 PM -
MavenJava - browse source code of all open source projects online
By jirkacelak in forum Java SoftwareReplies: 1Last Post: 11-28-2008, 06:27 PM -
hiding source file from users
By AXH in forum Java AppletsReplies: 2Last Post: 10-28-2008, 10:43 AM -
Super class and Subclass in same source file
By makbar24 in forum New To JavaReplies: 17Last Post: 09-10-2008, 01:24 PM -
Binaries and Source File
By sumation in forum NetBeansReplies: 0Last Post: 04-03-2008, 07:14 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks