You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Michael Wechner <mi...@wyona.com> on 2006/05/08 13:57:15 UTC

Re: svn commit: r400414 - in /lenya/trunk: build.sh lenya.sh lib/endorsed/ src/targets/properties-build.xml

antonio@apache.org wrote:
> Author: antonio
> Date: Sat May  6 21:44:18 2006
> New Revision: 400414
>
> URL: http://svn.apache.org/viewcvs?rev=400414&view=rev
> Log:
> Activating java 1.5 compile and run for Linux.
>   

Is Lenya 1.4-dev really working with Java 1.5  ?

AFAIK it doesn't work without changes ... and this is why we made the 
build process  stop for Java 1.5 such that people know.

Thanks

Michi

> Removed:
>     lenya/trunk/lib/endorsed/
> Modified:
>     lenya/trunk/build.sh
>     lenya/trunk/lenya.sh
>     lenya/trunk/src/targets/properties-build.xml
>
> Modified: lenya/trunk/build.sh
> URL: http://svn.apache.org/viewcvs/lenya/trunk/build.sh?rev=400414&r1=400413&r2=400414&view=diff
> ==============================================================================
> --- lenya/trunk/build.sh (original)
> +++ lenya/trunk/build.sh Sat May  6 21:44:18 2006
> @@ -29,6 +29,8 @@
>  OLD_CLASSPATH="$CLASSPATH"
>  unset CLASSPATH
>  CLASSPATH="`echo lib/*.jar | tr ' ' $S`"
> +# Add cocoon endorsed libs
> +CLASSPATH="$CLASSPATH `echo externals/cocoon_2_1_x/lib/endorsed/*.jar | tr ' ' $S`"
>  export CLASSPATH
>  
>  # ----- Use Ant shipped with Lenya. Ignore installed in the system Ant
>
> Modified: lenya/trunk/lenya.sh
> URL: http://svn.apache.org/viewcvs/lenya/trunk/lenya.sh?rev=400414&r1=400413&r2=400414&view=diff
> ==============================================================================
> --- lenya/trunk/lenya.sh (original)
> +++ lenya/trunk/lenya.sh Sat May  6 21:44:18 2006
> @@ -148,7 +148,7 @@
>  # ----- Set Local Variables ( used to minimize cut/paste) ---------------------
>  
>  JAVA="$JAVA_HOME/bin/java"
> -ENDORSED_LIBS="$LENYA_LIB/endorsed"
> +ENDORSED_LIBS="${LENYA_HOME}/externals/cocoon_2_1_x/lib/endorsed"
>  ENDORSED="-Djava.endorsed.dirs=$ENDORSED_LIBS"
>  PARSER=-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
>  LOADER=Loader
>
> Modified: lenya/trunk/src/targets/properties-build.xml
> URL: http://svn.apache.org/viewcvs/lenya/trunk/src/targets/properties-build.xml?rev=400414&r1=400413&r2=400414&view=diff
> ==============================================================================
> --- lenya/trunk/src/targets/properties-build.xml (original)
> +++ lenya/trunk/src/targets/properties-build.xml Sat May  6 21:44:18 2006
> @@ -52,12 +52,17 @@
>    <property name="optimize"       value="on"/>
>    <property name="deprecation"    value="off"/>
>    <property name="nowarn"         value="off"/>
> -  <property name="target.vm"      value="1.4"/>
> -
> -<!-- http://article.gmane.org/gmane.comp.cms.lenya.user/9712 -->
> -<!--
> -  <property name="target.vm"      value="1.5"/>
> --->
> +  <!-- Detecting the current jvm -->
> +  <condition property="target.vm" value="${ant.java.version}">
> +    <not>
> +      <or>
> +        <equals arg1="1.1" arg2="${ant.java.version}"/>
> +        <equals arg1="1.2" arg2="${ant.java.version}"/>
> +        <equals arg1="1.3" arg2="${ant.java.version}"/>
> +      </or>
> +    </not>
> +  </condition>
> +  <fail unless="target.vm">Please use a JVM 1.4 or superior to compile lenya ${version}</fail>
>  
>    <property name="packages"      value="*.*"/>
>  
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
> For additional commands, e-mail: commits-help@lenya.apache.org
>
>
>   


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


Re: svn commit: r400414 - in /lenya/trunk: build.sh lenya.sh lib/endorsed/ src/targets/properties-build.xml

Posted by Michael Wechner <mi...@wyona.com>.
Oliver Schalch wrote:
> Windows NT
> Windows 98
> ...
>
> Then we could check just the occuring of Windows...
>   

yes, better than nothing ;-)

Michi
> Greets
> Oliver
>
>
>   


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


Re: svn commit: r400414 - in /lenya/trunk: build.sh lenya.sh lib/endorsed/ src/targets/properties-build.xml

Posted by Oliver Schalch <ol...@wyona.com>.
On Monday 08 May 2006 14:38, Antonio Gallardo wrote:
> > I am bit confused because you write that it's turned on now for Linux,
> > but since it doesn't check on the OS I guess
> > it's also turned on for Windows. Has anyone checked that?
>
> The best is to turn on java 1.5 support for windows too. Initially, I
> thought to add a  ${os.name} check into the ant build for windows.
> Unfortunately, I don't know what this variable returns for windows. Can
> someone kindly provide it?

On Windows XP it looks like that:

D:\workspace\lenya_1.4.x>ant osTest
Buildfile: build.xml

osTest:
      [echo] Windows XP

BUILD SUCCESSFUL
Total time: 1 second

I'm not sure how it looks on other Windozes, maybe

Windows NT
Windows 98
...

Then we could check just the occuring of Windows...

Greets
Oliver


-- 
Oliver Schalch				 oliver.schalch@wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com			  http://lenya.apache.org

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


Re: svn commit: r400414 - in /lenya/trunk: build.sh lenya.sh lib/endorsed/ src/targets/properties-build.xml

Posted by Antonio Gallardo <ag...@agssa.net>.
Michael Wechner escribió:
> Antonio Gallardo wrote:
>> Michael Wechner escribió:
>>> Michael Wechner wrote:
>>>> Is Lenya 1.4-dev really working with Java 1.5  ?
>>>>
>>>> AFAIK it doesn't work without changes ... and this is why we made 
>>>> the build process  stop for Java 1.5 such that people know.
>>>
>>> well, it seems to work for
>>>
>>>    * version: 1.5.0_06
>>>    * java-vendor: Sun Microsystems Inc.
>>>    * name: Linux
>>>    * architecture: i386
>>>    * version: 2.6.12-10-386
>>>
>>
>> If we don't start java 1.5 support, people will never start to use 
>> it. Java 1.4.x is slowly begin deprecated. It's time to switch now.
>
> well, companies using Lenya might not switch to 1.5 so quickly, so I 
> think it's very important that Lenya runs also with Lenya 1.4 for
> quite some time.
I agree. I am not deprecating java 1.4 support. I am just activating 
java 1.5.
>>
>> BTW, would some win user setup the config for 1.5 in lenya *.bat files?
>
> it seems to me there is no check on the operating system within the 
> Lenya build process, right?
right.
>
> I am bit confused because you write that it's turned on now for Linux, 
> but since it doesn't check on the OS I guess
> it's also turned on for Windows. Has anyone checked that?
The best is to turn on java 1.5 support for windows too. Initially, I 
thought to add a  ${os.name} check into the ant build for windows. 
Unfortunately, I don't know what this variable returns for windows. Can 
someone kindly provide it?

Best Regards,

Antonio Gallardo.


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


Re: svn commit: r400414 - in /lenya/trunk: build.sh lenya.sh lib/endorsed/ src/targets/properties-build.xml

Posted by Michael Wechner <mi...@wyona.com>.
Antonio Gallardo wrote:
> Michael Wechner escribió:
>> Michael Wechner wrote:
>>> Is Lenya 1.4-dev really working with Java 1.5  ?
>>>
>>> AFAIK it doesn't work without changes ... and this is why we made 
>>> the build process  stop for Java 1.5 such that people know.
>>
>> well, it seems to work for
>>
>>    * version: 1.5.0_06
>>    * java-vendor: Sun Microsystems Inc.
>>    * name: Linux
>>    * architecture: i386
>>    * version: 2.6.12-10-386
>>
>
> If we don't start java 1.5 support, people will never start to use it. 
> Java 1.4.x is slowly begin deprecated. It's time to switch now.

well, companies using Lenya might not switch to 1.5 so quickly, so I 
think it's very important that Lenya runs also with Lenya 1.4 for
quite some time.
>
> BTW, would some win user setup the config for 1.5 in lenya *.bat files?

it seems to me there is no check on the operating system within the 
Lenya build process, right?

I am bit confused because you write that it's turned on now for Linux, 
but since it doesn't check on the OS I guess
it's also turned on for Windows. Has anyone checked that?

Thanks

Michi
>
> Best Regards,
>
> Antonio Gallardo.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>


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


Re: svn commit: r400414 - in /lenya/trunk: build.sh lenya.sh lib/endorsed/ src/targets/properties-build.xml

Posted by Antonio Gallardo <ag...@agssa.net>.
Michael Wechner escribió:
> Michael Wechner wrote:
>> Is Lenya 1.4-dev really working with Java 1.5  ?
>>
>> AFAIK it doesn't work without changes ... and this is why we made the 
>> build process  stop for Java 1.5 such that people know.
>
> well, it seems to work for
>
>    * version: 1.5.0_06
>    * java-vendor: Sun Microsystems Inc.
>    * name: Linux
>    * architecture: i386
>    * version: 2.6.12-10-386
>

If we don't start java 1.5 support, people will never start to use it. 
Java 1.4.x is slowly begin deprecated. It's time to switch now.

BTW, would some win user setup the config for 1.5 in lenya *.bat files?

Best Regards,

Antonio Gallardo.

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


Re: svn commit: r400414 - in /lenya/trunk: build.sh lenya.sh lib/endorsed/ src/targets/properties-build.xml

Posted by Michael Wechner <mi...@wyona.com>.
Michael Wechner wrote:
> antonio@apache.org wrote:
>> Author: antonio
>> Date: Sat May  6 21:44:18 2006
>> New Revision: 400414
>>
>> URL: http://svn.apache.org/viewcvs?rev=400414&view=rev
>> Log:
>> Activating java 1.5 compile and run for Linux.
>>   
>
> Is Lenya 1.4-dev really working with Java 1.5  ?
>
> AFAIK it doesn't work without changes ... and this is why we made the 
> build process  stop for Java 1.5 such that people know.

well, it seems to work for

    * version: 1.5.0_06
    * java-vendor: Sun Microsystems Inc.
    * name: Linux
    * architecture: i386
    * version: 2.6.12-10-386



Michi
>
> Thanks
>
> Michi
>
>> Removed:
>>     lenya/trunk/lib/endorsed/
>> Modified:
>>     lenya/trunk/build.sh
>>     lenya/trunk/lenya.sh
>>     lenya/trunk/src/targets/properties-build.xml
>>
>> Modified: lenya/trunk/build.sh
>> URL: 
>> http://svn.apache.org/viewcvs/lenya/trunk/build.sh?rev=400414&r1=400413&r2=400414&view=diff 
>>
>> ============================================================================== 
>>
>> --- lenya/trunk/build.sh (original)
>> +++ lenya/trunk/build.sh Sat May  6 21:44:18 2006
>> @@ -29,6 +29,8 @@
>>  OLD_CLASSPATH="$CLASSPATH"
>>  unset CLASSPATH
>>  CLASSPATH="`echo lib/*.jar | tr ' ' $S`"
>> +# Add cocoon endorsed libs
>> +CLASSPATH="$CLASSPATH `echo 
>> externals/cocoon_2_1_x/lib/endorsed/*.jar | tr ' ' $S`"
>>  export CLASSPATH
>>  
>>  # ----- Use Ant shipped with Lenya. Ignore installed in the system Ant
>>
>> Modified: lenya/trunk/lenya.sh
>> URL: 
>> http://svn.apache.org/viewcvs/lenya/trunk/lenya.sh?rev=400414&r1=400413&r2=400414&view=diff 
>>
>> ============================================================================== 
>>
>> --- lenya/trunk/lenya.sh (original)
>> +++ lenya/trunk/lenya.sh Sat May  6 21:44:18 2006
>> @@ -148,7 +148,7 @@
>>  # ----- Set Local Variables ( used to minimize cut/paste) 
>> ---------------------
>>  
>>  JAVA="$JAVA_HOME/bin/java"
>> -ENDORSED_LIBS="$LENYA_LIB/endorsed"
>> +ENDORSED_LIBS="${LENYA_HOME}/externals/cocoon_2_1_x/lib/endorsed"
>>  ENDORSED="-Djava.endorsed.dirs=$ENDORSED_LIBS"
>>  PARSER=-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
>>  LOADER=Loader
>>
>> Modified: lenya/trunk/src/targets/properties-build.xml
>> URL: 
>> http://svn.apache.org/viewcvs/lenya/trunk/src/targets/properties-build.xml?rev=400414&r1=400413&r2=400414&view=diff 
>>
>> ============================================================================== 
>>
>> --- lenya/trunk/src/targets/properties-build.xml (original)
>> +++ lenya/trunk/src/targets/properties-build.xml Sat May  6 21:44:18 
>> 2006
>> @@ -52,12 +52,17 @@
>>    <property name="optimize"       value="on"/>
>>    <property name="deprecation"    value="off"/>
>>    <property name="nowarn"         value="off"/>
>> -  <property name="target.vm"      value="1.4"/>
>> -
>> -<!-- http://article.gmane.org/gmane.comp.cms.lenya.user/9712 -->
>> -<!--
>> -  <property name="target.vm"      value="1.5"/>
>> --->
>> +  <!-- Detecting the current jvm -->
>> +  <condition property="target.vm" value="${ant.java.version}">
>> +    <not>
>> +      <or>
>> +        <equals arg1="1.1" arg2="${ant.java.version}"/>
>> +        <equals arg1="1.2" arg2="${ant.java.version}"/>
>> +        <equals arg1="1.3" arg2="${ant.java.version}"/>
>> +      </or>
>> +    </not>
>> +  </condition>
>> +  <fail unless="target.vm">Please use a JVM 1.4 or superior to 
>> compile lenya ${version}</fail>
>>  
>>    <property name="packages"      value="*.*"/>
>>  
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: commits-help@lenya.apache.org
>>
>>
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>


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