It seems that Eclipse don't see my *.java source files in woApplication
project:
When I choose "rebuild project" from the menu, I don't see any
compilation step. I only see something like "setting classpath..."
There is no "warning flag" or "error flag" near *.java source files in
the "Package Explorer Window", but there is some warning and error
flags in the "Editor Window"
I don't understand this behaviour.
I also have 2 frameworks in my workspace and everything is fine with
them...
On Wednesday, July 2, 2003, at 02:12 PM, Ulrich Köster wrote:
> Hi Benoit,
>
> the build.xml.runs fine on my machine and installs the Application
> under /Local/Library/Frameworks.
> Is the file ant.fromeworks.wo.wosystemroot also empty?
It's not empty...
Library/Frameworks/JavaWebObjects.framework
Library/Frameworks/JavaFoundation.framework
Library/Frameworks/JavaXML.framework
Library/Frameworks/JavaWOExtensions.framework
Library/Frameworks/JavaEOAccess.framework
Library/Frameworks/JavaEOControl.framework
Library/Frameworks/JavaVM.framework
>
> Eclipse compiles your classes and stores them under bin(per default)
> could you check that your classes have no compile errors and that
> Window->Preferences->Workbench->'Perform build on resource
> modification' is turned on.
It was off. I just turned it on.
>
> Ulrich
> On Mittwoch, 2. Juli 2003, at 13:40 Uhr, Benoit Mangez wrote:
>
>> I try to run a woAplication with WOLips 1.0.3, java 1.3.1, macOSX
>> 10.2.6, WO 5.1.
>>
>> When I build the woApplication (with ANT), I receive
>> "MyWOApplication.woa" with no jar.
>>
>> I have the following error:
>>
>> [woapplication] BUILD FAILED: file:/.../build.xml:43:
>> /.../MyWOApplication/bin not found.
>>
>> I've also notice that the ant.* files where empty:
>> more ant.classpaths.user.home
>> An empty file result in a full filesystem scan
>>
>> I assume I made a mistake in the build.xml :
>>
>> <project name="MyWOApplication" default="build" basedir=".">
>>
>> <!-- main targets -->
>> <!-- add optional targets to depends list if needed -->
>> <target name="build" depends="setProps,init.build,build.woapp"/>
>>
>> <target name="install" depends="setProps,init.install,build.woapp"/>
>>
>> <target name="clean" depends="setProps">
>> <delete dir="${project.name}.woa"/>
>> </target>
>>
>> <!-- property determination -->
>> <target name="setProps">
>> <property file="build.properties"/>
>> <property
>> file="${user.home}${file.separator}Library${file.separator}wobuild.pro
>> perties"/>
>> <condition property="wo.properties.check.failed">
>> <not>
>> <and>
>> <isset property="wo.wosystemroot"/>
>> <isset property="wo.wolocalroot"/>
>> </and>
>> </not>
>> </condition>
>> <fail message="Could not find
>> ${user.home}${file.separator}Library${file.separator}wobuild.propertie
>> s." if="wo.properties.check.failed"/>
>> <property name="install.dir"
>> value="${wo.wolocalroot}/Local/Library/Webobjects/Frameworks"/>
>>
>> </target>
>>
>> <!-- basic initializations -->
>> <target name="init.install">
>> <tstamp/>
>> <property name="dest.dir" value="${install.dir}"/>
>> </target>
>>
>> <target name="init.build">
>> <tstamp/>
>> <property name="dest.dir" value="/Local/Library/Frameworks"/>
>> </target>
>>
>> <!-- woproject tasks -->
>> <target name="build.woapp" depends="setProps">
>> <woapplication name="${project.name}" stdFrameworks="false"
>> destDir="${dest.dir}">
>> <classes dir="${classes.dir}">
>> </classes>
>> <wsresources dir=".">
>> <include name="addYourWebServerResourcesHere"/>
>> <exclude name="**/*.woa/**"/>
>> </wsresources>
>> <resources dir=".">
>> <include name="Properties"/>
>> <include name="**/*.eomodeld/"/>
>> <include name="**/*.d2wmodel"/>
>> <include name="**/*.wo/"/>
>> <include name="**/*.api"/>
>> <include name="**/*.strings"/>
>> <exclude name="**/*.eomodeld~/"/>
>> <exclude name="**/*.woa/**"/>
>> </resources>
>> <frameworks root="${wo.wosystemroot}">
>> <patternset>
>> <includesfile name="ant.frameworks.wo.wosystemroot"/>
>> </patternset>
>> </frameworks>
>> <frameworks root="${wo.wolocalroot}">
>> <patternset>
>> <includesfile name="ant.frameworks.wo.wolocalroot"/>
>> </patternset>
>> </frameworks>
>> <frameworks root="${user.home}">
>> <patternset>
>> <includesfile name="ant.frameworks.user.home"/>
>> </patternset>
>> </frameworks>
>> <otherclasspath root="${wo.wosystemroot}">
>> <patternset>
>> <includesfile name="ant.classpaths.wo.wosystemroot"/>
>> </patternset>
>> </otherclasspath>
>> <lib dir=".">
>> <include name="Add .jar's that should be copied in the woa."/>
>> <exclude name="**/*.woa/**"/>
>> </lib>
>> </woapplication>
>> </target>
>>
>> <!-- optional targets -->
>> <!-- copy strings files -->
>> <target name="copy.strings">
>> <copy
>> todir="${dest.dir}/${project.name}.woa/Contents/Resources">
>> <fileset dir="." casesensitive="yes">
>> <include name="*.strings"/>
>> <include name="**/*.strings"/>
>> </fileset>
>> <mapper type="flatten"/>
>> </copy>
>> </target>
>>
>> </project>
>>
>> Benoit
>>
>
>
Benoit
This archive was generated by hypermail 2.0.0 : Wed Jul 02 2003 - 09:26:39 EDT