Re: An other Eclips/WOLips newbie question: Target VM settings?

Lachlan Deck <[email protected]> Sat, 14 Jun 2008 21:37:24 +1000
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
On 13/06/2008, at 5:41 PM, Will Scheidegger wrote:

> Thanks Chuck, for your continued support! I did change everything to  
> "1.4" in the project's settings, had the project cleaned and freshly  
> built. Unfortunately I'm still getting the same error when I try to  
> deploy it. So here's a followup question:
>
> The project settings influence the Eclipse incremental build (i.e.  
> whatever ends up in the "build" folder). Do they also have an  
> influence on the ant build I'm using to build/install the project?
>
> (1h of googling later):
>
> I did find this interesting page: http://wiki.objectstyle.org/confluence/display/WOL/WOApplication
> The following parameters could be of interest to me I would guess:
> - jvm
> - jvmOptions
> - javaVersion
>
> So I tried this:
> <woapplication customInfoPListContent="${customInfoPListContent}"  
> destDir="${dest.dir}" name="${project.name}" principalClass="$ 
> {principalClass}" stdFrameworks="false" webXML="${webXML}"  
> webXML_CustomContent="${webXML_CustomContent}" javaVersion="1.4"  
> jvm="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/ 
> Home/">
>
> Still: Same "unsupported major.minor" error message.
>
> What else could I try?

<target name="compile" depends="setProps,init.eogenerator,init.build" >
	<mkdir dir = "bin"/>
	<property name="java.source.version" value="1.5" />
	<condition property="java.is.1.4">
		<equals arg1="1.4" arg2="${java.source.version}" />
	</condition>
	<wocompile srcdir="src" destdir="bin" target="${java.source.version}"  
source="${java.source.version}" debug="on">
		<frameworks root="${wo.wolocalroot}">
		<patternset>
				<includesfile name="woproject/ant.frameworks.wo.wolocalroot"/>
			</patternset>
		</frameworks>
		<frameworks root="${wo.wosystemroot}">
			<patternset>
				<includesfile name="woproject/ant.frameworks.wo.wosystemroot"/>
			</patternset>
		</frameworks>
		<frameworks root="${user.home}">
			<patternset>
				<includesfile name="woproject/ant.frameworks.user.home"/>
			</patternset>
		</frameworks>
		<classpath>
			<fileset dir="${wo.wolocalroot}">
				<patternset>
					<includesfile name="woproject/ant.frameworks.wo.wolocalroot"/>
				</patternset>
			</fileset>
			<fileset dir="Libraries">
				<filename name="**/*.jar" />
			</fileset>
		</classpath>
	</wocompile>
</target>

with regards,
--

Lachlan Deck