9 Replies Latest reply on Feb 21, 2007 1:02 PM by bdaw

    IntelliJ Idea project for JBoss Portal 2.6

    claque

      Hello,

      I just downloaded the Portal + AS bundle. I would like to incorporate the portal in my IDE (Idea) but I have no clue how to do it. Is there a HOWTO? Would it be possible to find the .ipr file somewhere?

      Thank you
      Claque

        • 1. Re: IntelliJ Idea project for JBoss Portal 2.6
          theute

          Idea and Eclipse files are available.

          For idea you will find the ipr and iml here:

          build/ide/intellij/ideaxx/*

          • 2. Re: IntelliJ Idea project for JBoss Portal 2.6

            You should look at build/ide/intellij/idea60/

            • 3. Re: IntelliJ Idea project for JBoss Portal 2.6
              claque

              build.iml seems to be missing - so says Idea when trying to load the project.

              • 4. Re: IntelliJ Idea project for JBoss Portal 2.6
                theute

                build is not a Java project, it's just a place to have the build files. (scripts)

                • 5. Re: IntelliJ Idea project for JBoss Portal 2.6
                  claque

                  I found the build/ide/intellij/idea60/jboss-portal.ipr and copied it to the root of the source directory as the README says. I opened the file with Idea 6.0 and an error ocured:

                  "Cannot load module c:\... src\build\build.iml. Would you like to remove the module from the project? Yes No"

                  So i guess that is a bug.

                  • 6. Re: IntelliJ Idea project for JBoss Portal 2.6
                    claque

                    I needed to run generate-lib-file in the build-thirdparty.xml in order to get some classes. Maybe could be put in the readme.

                    I cant run build.xml as I get some errors. Is there anything else to be done in order to get all the libraries (for example for the class Analyzer)?

                    Thank you
                    Claque

                    • 7. Re: IntelliJ Idea project for JBoss Portal 2.6
                      theute

                      You don't need to run generate-lib-file it is called during the fisrt call to build.sh.


                      Just do "sh build.sh" (or build.bat)

                      • 8. Re: IntelliJ Idea project for JBoss Portal 2.6
                        claque

                        I've tried it, but it does:

                        C:\jboss-portal-2.6-ALPHA2\src\build>build.bat
                        Executing C:\jboss-portal-2.6-ALPHA2\src\build\..\tools\bin\ant.bat -logger org.apache.tools.ant.NoBannerLogger
                        Exception in thread "main" java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_06\lib\tools/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\xml-apis/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\xercesImpl/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\xalan/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\saxon/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\junit/
                        jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\jbossbuild/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\jboss-test/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\explode/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\crimson/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\cargo-core-uberjar-0/8/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\buildmagic-task
                        s/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\bsf/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\ant/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\ant-nodeps/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\ant-launcher/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\ant-junit/jar;
                        Press any key to continue . . .

                        • 9. Re: IntelliJ Idea project for JBoss Portal 2.6
                          bdaw

                          1) the cleanest way is to create a multimodule project in portal sources dir and then manually add all .iml files as new modules to the project
                          2) we don't build portal inside intellij - we just edit sources there and build using command line and ant scripts
                          3) the issue you have with build.sh is probably because you have java installed in "Program Files" (directory with space in name). Yes I know it sucks... Just try using plain ant (call ant command in "build" directory) or move java to better location if you want to invoke ant with .bat scripts.