Re: HOMEROOT in my UNIXClassPath.txt
Re: HOMEROOT in my UNIXClassPath.txt
- Subject: Re: HOMEROOT in my UNIXClassPath.txt
- From: Fabian Peters <email@hidden>
- Date: Tue, 21 Jun 2016 14:09:50 -0400
Hi Terry,
WOBootstrap.jar is missing from your new build environment. When it is absent, the pre-5.2 startup script is being used.
That being said, the old script works fine for me, as long as HOME and NEXT_ROOT are set and _all_ framework dependencies are embedded.
Fabian
> Am 21.06.2016 um 09:10 schrieb Soles, James T <email@hidden>:
>
> We are in the process of moving our app to Java 8 and have made some changes to some of our build files. In particular, we have had to change where the files are created and where the WO frameworks are stored on our new Mac Books. I am now seeing the HOMEROOT variable in the UNIXClassPath.txt file instead of the WOROOT which used to exist in these files.
>
> Can someone help me understand what I need to change to get this to use WOROOT again instead of HOMEROOT?
>
> Here is one of the ant build files and my wolips.properties file.
>
>
>
> <project name="DecisionQJava" default="install" basedir=".">
>
> <target name="build" depends="init.build,build.woapp,javaclient" />
>
>
> <target name="install" depends="init.install,build.woapp,javaclient" />
>
>
> <target name="clean" depends="init.properties">
>
> <delete dir="bin" />
>
> <delete dir="dist" />
>
> </target>
>
>
> <!-- basic initializations -->
>
> <target name="init.install" depends="init.properties">
>
> <tstamp />
>
> <property name="dest.dir" value="${wo.apps.root}" />
>
> </target>
>
>
> <target name="init.build" depends="init.properties">
>
> <tstamp />
>
> <property name="dest.dir" value="dist" />
>
> </target>
>
>
> <!-- property determination -->
>
> <target name="init.properties">
>
> <property file="build.properties" />
>
>
> <property name="wolips.properties" value="${user.home}${file.separator}wolips.properties" />
>
> <property file="${wolips.properties}" />
>
> <condition property="wo.properties.check.failed">
>
> <not>
>
> <and>
>
> <isset property="wo.system.frameworks" />
>
> <isset property="wo.local.frameworks" />
>
> </and>
>
> </not>
>
> </condition>
>
> <fail message="The properties 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that your ${wolips.properties} is correct." if="wo.properties.check.failed" />
>
>
> <property name="build.app.name" value="${project.name}" />
>
> <property name="build.app.name.lowercase" value="${project.name.lowercase}" />
>
> </target>
>
>
>
> <!-- woproject tasks -->
>
> <target name="build.woapp" depends="compile">
>
> <taskdef name="woapplication" classname="org.objectstyle.woproject.ant.WOApplication"/>
>
>
> <woapplication name="${build.app.name}" destDir="${dest.dir}" principalClass="${principalClass}">
>
> <frameworks dir="${wo.system.frameworks}">
>
> <include name="JavaWebObjects.framework"/>
>
> <include name="JavaFoundation.framework"/>
>
> <include name="JavaXML.framework"/>
>
> <include name="JavaWOExtensions.framework"/>
>
> <include name="JavaEOAccess.framework"/>
>
> <include name="JavaEOControl.framework"/>
>
> <include name="JavaJDBCAdaptor.framework"/>
>
> </frameworks>
>
> <frameworks dir="${wo.local.frameworks}">
>
> <include name="RamsARJava.framework"/>
>
> <include name="RamsBusObjJava.framework"/>
>
> <include name="RamsCommJava.framework"/>
>
> <include name="RamsUtilityJava.framework"/>
>
> <include name="RamsStrategyEngineJava.framework"/>
>
> </frameworks>
>
> </woapplication>
>
> </target>
>
>
> <target name="javaclient" depends="build.woapp">
>
> <mkdir dir="${dest.dir}/${build.app.name}.woa/Contents/Resources/Java" />
>
> <jar basedir="${classes.dir}" excludes="**/server/**/*.*, **/server/**/" jarfile="${dest.dir}/${build.app.name}.woa/Contents/Resources/Java/${build.app.name.lowercase}.jar"/>
>
> </target>
>
>
> <target name="compile" depends="init.properties">
>
> <taskdef name="wocompile" classname="org.objectstyle.woproject.ant.WOCompile" />
>
>
> <wocompile srcdir="src" destdir="." includeantruntime="false">
>
> <frameworks dir="${wo.system.frameworks}">
>
> <include name="JavaWebObjects.framework"/>
>
> <include name="JavaFoundation.framework"/>
>
> <include name="JavaXML.framework"/>
>
> <include name="JavaWOExtensions.framework"/>
>
> <include name="JavaEOAccess.framework"/>
>
> <include name="JavaEOControl.framework"/>
>
> <include name="JavaJDBCAdaptor.framework"/>
>
> </frameworks>
>
> <frameworks dir="${wo.local.frameworks}">
>
> <include name="RamsARJava.framework"/>
>
> <include name="RamsBusObjJava.framework"/>
>
> <include name="RamsCommJava.framework"/>
>
> <include name="RamsUtilityJava.framework"/>
>
> <include name="RamsStrategyEngineJava.framework"/>
>
> </frameworks>
>
> <classpath>
>
> <fileset dir="${wo.extensions}">
>
> <include name="*.jar" />
>
> </fileset>
>
> </classpath>
>
> </wocompile>
>
> </target>
>
> </project>
>
>
> #Wed Feb 18 09:10:35 EST 2009
>
> wo.system.root=/Users/v822480
>
> wo.user.frameworks=/Users/v822480/Library/Frameworks
>
> wo.system.frameworks=/Users/v822480/Library/Frameworks
>
> wo.bootstrapjar=/Users/v822480/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
>
> wo.network.frameworks=/Network/Library/Frameworks
>
> wo.api.root=/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.WebObjectsReference.docset/Contents/Resources/Documents/documentation/InternetWeb/Reference/WO542Reference
>
> wo.network.root=/Network
>
> wo.extensions=/Users/v822480/Local/Library/WebObjects/Extensions
>
> wo.user.root=/Users/v822480
>
> wo.local.frameworks=/Users/v822480/Local/Library/Frameworks
>
> wo.apps.root=/Users/v822480/Local/Library/WebObjects/Applications
>
> wo.local.root=/
>
> wo.dir.webroot=/Users/v822480/inetpub/wwwroot/WebObjects
>
> Here’s the UNIXClassPath.txt file which is now being generated:
>
> # JVM == java
> # JVMOptions ==
> # JDB == jdb
> # JDBOptions ==
> # ApplicationClass == DecisionQ_main
>
> APPROOT/Resources/Java/
> APPROOT/Resources/Java/decisionqjava.jar
>
> HOMEROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
> HOMEROOT/Library/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar
> HOMEROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
> HOMEROOT/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar
> HOMEROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
> HOMEROOT/Library/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar
> HOMEROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
> HOMEROOT/Library/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar
> HOMEROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
> HOMEROOT/Library/Frameworks/JavaWOExtensions.framework/WebServerResources/Java/JavaWOExtensions.jar
> HOMEROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
> HOMEROOT/Library/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar
> HOMEROOT/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
> HOMEROOT/Library/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar
> HOMEROOT/Local/Library/Frameworks/RamsBusObjJava.framework/Resources/Java/ramsbusobjjava.jar
> HOMEROOT/Local/Library/Frameworks/RamsCommJava.framework/Resources/Java/ramscommjava.jar
> HOMEROOT/Local/Library/Frameworks/RamsUtilityJava.framework/Resources/Java/ramsutilityjava.jar
>
> Thanks,
>
> Terry Soles
> 214-273-3916
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden