Re: Building on server, no Eclipse
Re: Building on server, no Eclipse
- Subject: Re: Building on server, no Eclipse
- From: Dom <email@hidden>
- Date: Mon, 06 Apr 2009 22:55:05 -0400
On Apr 6, 2009, at 10:15 PM, Chuck Hill wrote:
How old are your build.xml files? Does the woframework task start
like:
<target name="build.woframework" depends="compile">
I replaced the build files with one from a new wonder framework
project as part of upgrading to the new wolips. First target in
mine is:
<!-- main targets -->
<!-- add optional targets to depends list if needed -->
<target name="build"
depends="setProps,init.build,build.woframework" />
How does the build.woframework tasks start?
<target name="build.woframework">
<taskdef name="woframework"
classname="org.objectstyle.woproject.ant.WOFramework">
</taskdef>
<woframework name="${project.name}" destDir="${dest.dir}"
customInfoPListContent="${customInfoPListContent}" principalClass="$
{principalClass}" eoAdaptorClassName="${eoAdaptorClassName}"
javaVersion="${javaVersion}" cfbundleversion="${cfBundleVersion}"
cfbundleshortversion="${cfBundleShortVersion}" cfbundleID="$
{cfBundleID}">
Anything in the compile target that does not match that machine?
It should "just work" but...
it's running java 1.6 on the server, and I'm running 1.5 locally. I
have built another project before, but that one didn't use any
frameworks.
1.6. You could have mentioned that sooner. I have no idea if
woproject function correctly under 1.6. I'd expect so, but I don't
know.
Again: look in the compile target.
I assumed based on a few other threads I've followed that it was fine,
but maybe not. If that is in fact the case, then I'd think nothing
would build properly, and that's not true; other applications that
don't rely on these frameworks, that are using the new wolips are
building and deploying fine.
Also, again, look for errors or information in the ant log (run
with -version -debug for more info) around where it says
[woframework] No sources found.
Other things noticed:
[antlib:org.apache.tools.ant] Could not load definitions from
resource org/apache/tools/ant/antlib.xml. It could not be found.
Try Googling that. You might have a busted Ant install.
and theres' a load of this, one statement for each property defined
in either build.properties or the wolips.properties
Override ignored for propery "some.property"
And then these few lines, variations of which appear near the No
Sources Found output:
WOFileSet: Setup scanner in dir /home/dom/Projects/ORM/bin with
patternSet{ includes: [**/*.class, *.properties] excludes:
[build.properties] }
[woframework] No Implementation-Title set.No Implementation-Version
set.No Implementation-Vendor set.
[woframework] Location: /home/dom/Projects/ORM/build.xml:49:
I think the problem is earlier, when it does not compile.
So, I'd been running clean install with -debug. I instead tried
running ant -debug compile and got an exception this time:
at org.objectstyle.woproject.ant.FrameworkSet.setRoot(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.IntrospectionHelper
$3.set(IntrospectionHelper.java:927)
at
org
.apache
.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:
388)
at
org
.apache
.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:
392)
at
org
.apache
.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:
349)
at
org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:568)
at
org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:
346)
at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:
198)
at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:
160)
at org.apache.tools.ant.Task.perform(Task.java:347)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org
.apache
.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
_______________________________________________
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