[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re[2]: [higgins-dev] Need help with Plugin Target Builds
|
Tuesday, October 9, 2007, 5:07:47 PM, you wrote:
> Valery Kokhan <vkokhan@xxxxxxxxxxxxxx> wrote on 10/09/2007 09:18:31 AM:
>> Mike,
>>
>> In order to have some project be buildable as plugun it is necessary
>> to use plugin dependencies instead of dependencies on local projects.
> Please elaborate on exactly what is wrong with the project. As far as I
> know it has no project dependencies, only dependencies on plugin projects
> and non-project jar files.
Sorry, I didn't noticed that you changed that. I do not see any
problem with sts.common project right now but yesterday it has
dependencies on local projects.
>> With regards to war targets... Higgins2ant plugin which we are using
>> to generate build.xml, buildaux.xml and dependencies.xml files for our
>> project does not generate such target in dependencies.xml because I
>> don't know how to determine which project should have such targets.
>> However it generate two targets which could be useful in war target:
>> -copylibraries and -copyalljars.
>> The first target copy all dependency libraries (thirdparty) to the
>> location specified as "toDir" parameter
>> The second one do the same for jar files of dependency projects.
>> I think that using these targets it is not so difficult to manually
>> write simple build script for war target.
> It seems like we have a script for creating jar, plugin, etc. targets that
> allows us to modify project settings then regenrate the build.xml and
> buildaux.xml files (which can be merged since the reason for buildaux.xml
> was to allow us to regen build.xml using the standard eclipse export/ant
> without overwriting our local settings). Now you are saying I need to
> modify by hand the exported files to support war target. The problem is
> that if I make project changes that require me to regen the build.xml
> and/or buildaux.xml I will overwrite these changes. Why can't you
> determine that a project should be built as WAR? It seems like it is easy
> to determine this in many ways, for example if it contains a WebContent
> directory.
I'm not proposing to modify build.xml and buildaux.xml which are
currently could be regenerated... I'm proposing to create new very
simple one, let's say buildaux1.xml, which could looks like follows:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse.ant.import?>
<project default="war" name="org.eclipse.higgins......buildaux1">
<import file="buildaux.xml" optional="true"/>
<target name="war">
<antcall target="-copylibraries" >
<param name="toDir" value="someTmpLocation"/>
</antcall>
<antcall target="-copyalljars" >
<param name="toDir" value="someTmpLocation"/>
</antcall>
<war ... >
....
<lib dir="someTmpLocation">
</lib>
</war>
</target>
</project>
and regenerate build.xml.
>>
>>
>> Valery
>>
>> Tuesday, October 9, 2007, 3:33:40 PM, you wrote:
>>
>> > I've been trying to get the plugin targets and the auto builds working
>> > (the jar targets seem to be ok).
>> > It's unclear to me why this buildis failing for
>> > "org.eclipse.higgins.sts.common". Can someone familiar with the plugin
>> > target for ant builds please take a look?
>> > Also there needs to be a way to auto build WAR target, seems like that
>> > feature is missing (or undocumented).
>>
>> > Buildfile: C:\Documents and
>> >
> Settings\Administrator\Higgins\org.eclipse.higgins.sts.common\build.xml
>> > --SNIP: I've removed a lot of noise output
>> > [java] init:
>> > [java] gather.bin.parts:
>> > [java] [copy] Copying 43 files to C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>>
> common\build\temp.dir\tmp\eclipse\plugins\org.eclipse.higgins.sts.common_0.9.0
>> > [java] BUILD FAILED
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\pluginBuilder.xml:107:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\pluginBuilder.xml:122:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\pluginBuilder.xml:279:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\build\temp.dir\builder\build.xml:26:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\build\temp.dir\builder\build.xml:91:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\build\temp.dir\builder\customTargets.xml:10:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\build\temp.dir\builder\allElements.xml:12:
>> > The following error occurred while executing this line:
>> > [java]
>> > C:\eclipse\plugins\org.eclipse.pde.build_3.2.1.
>> r321_v20060823\scripts\genericTargets.xml:150:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\build\temp.dir\assemble.org.eclipse.higgins.sts.common.all.xml:4:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\build\temp.dir\builder\allElements.xml:26:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\build\temp.dir\assemble.org.eclipse.higgins.sts.common.xml:52:
>> > The following error occurred while executing this line:
>> > [java] C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>>
> common\build\temp.dir\plugins\org.eclipse.higgins.sts.common\build.xml:154:
>> > java.lang.NullPointerException
>> > [java] Total time: 45 seconds
>> > [java] Java Result: 13
>>
>> > BUILD FAILED
>> > C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\buildaux.xml:142:
>> > The following error occurred while executing this line:
>> > C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\pluginBuilder.xml:107:
>> > The following error occurred while executing this line:
>> > C:\Documents and
>> > Settings\Administrator\Higgins\org.eclipse.higgins.sts.
>> common\pluginBuilder.xml:143:
>> > Build Eclipse plugin failed
>>
>> > Total time: 52 seconds
>> > _______________________________________________
>> > higgins-dev mailing list
>> > higgins-dev@xxxxxxxxxxx
>> > https://dev.eclipse.org/mailman/listinfo/higgins-dev
>>