BTW, you can run the ant scripts right from Eclipse if you don't like the command line. Open the top level build.xml and select the ant target in ourline view. Right click on target and choose "Run as ant build."

You can also configure the Ofbiz to run from Eclipse (Without Ant script). It is bit more involved and let me know if u really need to know.

Raj


Roberto Cosenza wrote:
Thank you. The eclipse files do work. I had tried them already and it did not compile. I'm sure i had messed up with them during the import.
Now I feel more comfortable
/roberto

On Mar 11, 2008, at 4:26 PM, Raj Saini wrote:

I am not sure about IntelliJ but Eclipse .project and .classpath files are in SVN. I generally checkout the OFbiz from SVN as Java project and it works without any problem.

Advantage of Eclipse could be code completion, nice editor, and compile time errors in the editor itself as Eclipse uses incremental compiler. However, you would still need the ant scripts to build and run the Ofbiz containers.

Hope this helps,

Thanks,

Raj

Roberto Cosenza wrote:

On Mar 10, 2008, at 11:56 PM, Ryan Sweet wrote:

I'm not sure that would make sense, as they will have lots of internal (to my system) modules and dependencies (I depend on other systems than ofbiz).

Here's what you can do:
1) Create new project (java project) - point this at your module under ${OFBIZ_HOME}/hot-deploy (I use maven 2, so to start from scratch I would go to the hot-deploy dir and do a new "mvn archetype:create" in that dir). 2) for IntelliJ, go to File->New Module, create new Java Module, import and existing src root, point it at ${OFBIZ_HOME}. 3) in the ant module for intellij, add the top level build.xml as an ant build file.

What would you then add in the classpath for your module?

Altough this is helping me a lot I cant't believe that there is no developer of the core ofbiz using an ide "properly" configured, with a maintained project file. Is everybody using command line to compile?

/roberto




Reply via email to