- Create folders named Classes, Objects, etc under MyFrameworkProject
- move the files into the appropriate folder so that the paths become
MyFrameworkProject\Classes\com\myCompany\MyFramework\MyJavaClass.java
MyFrameworkProject\Objects\com\myCompany\MyFramework\MyOtherJavaClass.java
etc.
- in the project properties panel go to the source paths and add the
olders named Classes, Objects, etc as source folders. Remove any
folders already there
- build and be happy :-)
Chuck
RIAHI Farshad wrote:
> Hi,
> We are somewhat confused with file organization in Eclipse. I didn't find
> any article about this on the Web !!! Here is our issue :
> We want to create WO Frameworks with WOLips.
> All our Java files begin wih "package com.myCompany.MyFramework;"
>
> If we roganize all files of the same package in the FileSystem tree :
> MyFrameworkProject\com\MyCompany\MyFramework
> every thing is OK.
> But we want to reorganize files in some other subdirectories :
> MyFrameworkProject\Classes ; MyFrameworkProject\Components ;
> MyFrameworkProject\Objects ; etc....
>
> Then, when compiling, there is an error in each file : "declared package
> doesnt match with package definition" and Eclipse proposes the solution :
> "Move file.java to com.MyCompany.MyFramework" ....
> Selecting this solution removes the error but moves the java file in the
> MyFrameworkProject\com\MyCompany\MyFramework file tree. :-(
>
>
> Is there a solution to organize files as the way we want ? How can we tell
> Eclipse / Wolips not to remove files ? Is this a Eclipse issue or a WOLips
> limitation ?
>
>
> Thanks in Advance,
>
> Farshad.
--Chuck Hill chil..lobal-village.net Global Village Consulting Inc. http://www.global-village.net
Progress is the mother of all problems. - G. K. Chesterton
This archive was generated by hypermail 2.0.0 : Tue Nov 25 2003 - 13:37:04 EST