compiling woodstock

View: New views
3 Messages — Rating Filter:   Alert me  

compiling woodstock

by robert.hook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have attempted to build woodstock both from the command line via ant, and via the Netbeans projects using Netbeans 6.1, and in
both cases failed. This may reflect problems with 4.3 build 7, so I will attempt the same with 4.3 build 6. I am trying to build
against both a 1.5 JDK and a 1.6 JDK. Yes, I've followed the instructions at <https://woodstock.dev.java.net/BuildYourself.htm>.

In order to build against the 1.5 JDK (this is under Ubuntu, by the way, in case "build once, run anywhere" is no longer true) by
doing the following from a little shell script

        export JAVA_HOME=/var/opt/java/jdk1.5.0_16
        export PATH=$JAVA_HOME/bin:$PATH
        ant -f master/build.xml

to build against the 1.6 JDK I just ran ant from the command line, with JAVA_HOME pointing at my 1.6 JDK. In both cases the ant
build falls over toward the end:

        compile-jsps:
            [mkdir] Created dir: /home/robert/Projects/woodstock/example/build/generated/src
             [java] org.apache.jasper.JasperException: Unrecognized option: -compilerSourceVM 1.5.  Use -help for help.

which is the same problem that arises with that project when attempting to build from Netbeans

suggestions? Other than doing what I'm about to do, which is chop the "example" project out of the master build and see if
everything else will build?
--

Robert Hook | Software Engineer for Salmat BusinessForce
16 Archimedes Pl
Murarrie QLD 4172 Australia

t   +61 (07) 3896 0896
f   +61 (07) 3899 5674
m   +61 0407 959 570
e   robert.hook@...
w   salmat.com.au

***********************************************************************************
This e-mail, including any attachments to it, may contain confidential and/or personal information. If you have received this e-mail in error, you must not copy, distribute, or disclose it, use or take any action based on the information contained within it. Please notify the sender immediately by return e-mail of the error and then delete the original e-mail.

The information contained within this e-mail may be solely the opinion of the sender and may not necessarily reflect the position, beliefs or opinions of the organisation on any issue. This email has been swept for the presence of computer viruses known to the organisation’s anti-virus systems.

***********************************************************************************



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: compiling woodstock

by richard ratta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sounds like the VM you are using doesn't support that compile option,
which is used
to generate 1.5 class files.

If you don't care about this, remove the option.

Also this step is only done to verify that the JSP files compile. This
step can be removed.
You will probably have to go to the ant build file (probably the
"example" directory)
and comment out the compile of the JSP files.
If it is the netbeans build file that is executing the task there are
usually properties you
can set to prevent the build from compiling the JSP files.

-rick

robert.hook@... wrote:

>I have attempted to build woodstock both from the command line via ant, and via the Netbeans projects using Netbeans 6.1, and in
>both cases failed. This may reflect problems with 4.3 build 7, so I will attempt the same with 4.3 build 6. I am trying to build
>against both a 1.5 JDK and a 1.6 JDK. Yes, I've followed the instructions at <https://woodstock.dev.java.net/BuildYourself.htm>.
>
>In order to build against the 1.5 JDK (this is under Ubuntu, by the way, in case "build once, run anywhere" is no longer true) by
>doing the following from a little shell script
>
> export JAVA_HOME=/var/opt/java/jdk1.5.0_16
> export PATH=$JAVA_HOME/bin:$PATH
> ant -f master/build.xml
>
>to build against the 1.6 JDK I just ran ant from the command line, with JAVA_HOME pointing at my 1.6 JDK. In both cases the ant
>build falls over toward the end:
>
> compile-jsps:
>    [mkdir] Created dir: /home/robert/Projects/woodstock/example/build/generated/src
>     [java] org.apache.jasper.JasperException: Unrecognized option: -compilerSourceVM 1.5.  Use -help for help.
>
>which is the same problem that arises with that project when attempting to build from Netbeans
>
>suggestions? Other than doing what I'm about to do, which is chop the "example" project out of the master build and see if
>everything else will build?
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: compiling woodstock

by robert.hook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

richard ratta wrote:

> Sounds like the VM you are using doesn't support that compile option,
> which is used
> to generate 1.5 class files.
>
> If you don't care about this, remove the option.
>
> Also this step is only done to verify that the JSP files compile. This
> step can be removed.
> You will probably have to go to the ant build file (probably the
> "example" directory)
> and comment out the compile of the JSP files.
> If it is the netbeans build file that is executing the task there are
> usually properties you
> can set to prevent the build from compiling the JSP files.
>
> -rick
>

ok, i will tinker with the build file to suppress just that part, as I would really like to have the example built and locally
deployed in order to compare behaviours from my own code.

there is a certain amount - a lot - of confusion in my tiny little head at the moment. I can see that the Giant Ant Script That
Builds Everything constructed some large JAR files in master/build (Woodstock4.3*jar and Woodstock_DependentLibs.4.3*jar) as well 28
smaller jars under master/build/ship/lib - I guess the big JARs contain the little jars?

What I'm trying to do is get to the point where I have the source code available for use in my Netbeans 6.1 VisualWeb JSF projects
so that I can debug, and hopefully fix, a show-stopping problem with AddRemoveList. What is now further complicating this picture is
that the bunch of library jars that Netbeans calls "woodstock" do not correspond particularly to the set in master/build/ship/lib

I'm tentatively guessing that the projects under ide-plugins build the NBM that get plugged into Netbeans, but they don't get built
by the master script as far as I can see, and there's not a lot of doco on what is where in this sprawling great project.

--

Robert Hook | Software Engineer for Salmat BusinessForce
16 Archimedes Pl
Murarrie QLD 4172 Australia

t   +61 (07) 3896 0896
f   +61 (07) 3899 5674
m   +61 0407 959 570
e   robert.hook@...
w   salmat.com.au

***********************************************************************************
This e-mail, including any attachments to it, may contain confidential and/or personal information. If you have received this e-mail in error, you must not copy, distribute, or disclose it, use or take any action based on the information contained within it. Please notify the sender immediately by return e-mail of the error and then delete the original e-mail.

The information contained within this e-mail may be solely the opinion of the sender and may not necessarily reflect the position, beliefs or opinions of the organisation on any issue. This email has been swept for the presence of computer viruses known to the organisation???s anti-virus systems.

***********************************************************************************



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...