Hi.
Is anybody using a IDE to compile ofbiz? I mean not compiling through ant but though the built in compiler. I tried using the .classpath/.project files provided in svn but with no good results. /Roberto |
Roberto Cosenza wrote:
> Hi. > Is anybody using a IDE to compile ofbiz? I mean not compiling through > ant but though the built in compiler. > I tried using the .classpath/.project files provided in svn but with > no good results. > > /Roberto I use the plugin for intellij to use the ant build. Since I'm not working on ofbiz core - I made my module under hot-deploy a separate intellij module, and set it to depend on the top level ofbiz build. You could probably get the whole build to build with intellij, but you would need to go into the various lib directories and add those jaras as module dependencies in the intellij module settings dialog. It would take a long while to do it for evrey dep. regards, -Ryan |
That is an interesting approach. Would you mind sending me the intellij project files?
/Roberto
On Mar 10, 2008, at 10:54 PM, Ryan Sweet wrote: Roberto Cosenza wrote:Hi.Is anybody using a IDE to compile ofbiz? I mean not compiling through ant but though the built in compiler.I tried using the .classpath/.project files provided in svn but with no good results./RobertoI use the plugin for intellij to use the ant build. -- Roberto Cosenza | Senior developer Infoflex Connect AB | +46-8-555 768 60 | +46-70-4660928 |
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. as an alternate to 2) you could add each application and framework dir separately as an intellij module - if I were going to work on ofbiz core that is what I would do. your mileage may vary. regards, -Ryan Roberto Cosenza wrote: > That is an interesting approach. Would you mind sending me the > intellij project files? > /Roberto > On Mar 10, 2008, at 10:54 PM, Ryan Sweet wrote: > >> Roberto Cosenza wrote: >>> Hi. >>> Is anybody using a IDE to compile ofbiz? I mean not compiling >>> through ant but though the built in compiler. >>> I tried using the .classpath/.project files provided in svn but with >>> no good results. >>> >>> /Roberto >> I use the plugin for intellij to use the ant build. >> Since I'm not working on ofbiz core - I made my module under >> hot-deploy a separate intellij module, and set it to depend on the >> top level ofbiz build. >> You could probably get the whole build to build with intellij, but >> you would need to go into the various lib directories and add those >> jaras as module dependencies in the intellij module settings dialog. >> It would take a long while to do it for evrey dep. >> >> regards, >> -Ryan > > *-- * > *Roberto Cosenza* | Senior developer > Infoflex Connect AB | +46-8-555 768 60 | +46-70-4660928 > [hidden email] > <mailto:[hidden email]> | www.infoflexconnect.se > <http://www.infoflexconnect.se/> > > |
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 |
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 |
Administrator
|
In reply to this post by Roberto Cosenza-5
From: "Roberto Cosenza" <[hidden email]>
> 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 You can use Ant from Eclipse (I guess it's what most of us do). Did you search for "eclipse in the wiki ? Jacques |
In reply to this post by rajsaini
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 > |
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 >> > > |
Thanx, I do like using command line but still i like to use an editor
with refactoring support/formatting help when needed. On Mar 11, 2008, at 5:22 PM, Raj Saini wrote: > 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 > |
Free forum by Nabble | Edit this page |