Re: Small issue when building Wonder7 javadoc -> ${wonder-version.version} not properly used
Re: Small issue when building Wonder7 javadoc -> ${wonder-version.version} not properly used
- Subject: Re: Small issue when building Wonder7 javadoc -> ${wonder-version.version} not properly used
- From: Johann Werner <email@hidden>
- Date: Thu, 30 Nov 2017 09:43:17 +0100
Hi Markus,
seems that ant has problems either finding or opening and parsing the pom.xml
file. I am no ant expert but after searching a while I see that the used Ant
Task to parse Maven files is not maintained since 2014. Since Ant 1.7 there is
a Task called XmlProperty that can be used as replacement. Please try to change
in build-doc.xml the lines 13-14:
<artifact:pom id="wonder-version" file="pom.xml" />
<property name="project.version" value="${wonder-version.version}" />
to
<xmlproperty file="pom.xml" prefix="pom" />
<property name="project.version" value=„${pom.project.version}" />
Does that fix the problem for you?
jw
> Am 28.11.2017 um 16:54 schrieb Markus Ruggiero <email@hidden>:
>
> Johann,
> that's exactly what I have done. Repeated the procedure right now. Here is
> the result, Really weird.
>
> ruggiero@gugus_$ ant -version
> Apache Ant(TM) version 1.9.2 compiled on July 8 2013
> ruggiero@gugus_$ ls
> Applications/ BUILD.txt Examples/ README.mkd
> Tools/ build.properties@ components.html d2wlist.html dist/
> Archives/ Build/ Frameworks/ Tests/
> Utilities/ build.xml components.txt d2wlist.txt
> pom.xml
> ruggiero@gugus_$ ant -projecthelp
> Buildfile: /Developer/SourceDistributions/WonderSource/build.xml
>
> Main targets:
>
> Other targets:
>
> all
> applications
> applications.install
> archives.examples
> archives.examples.install
> archives.frameworks
> archives.frameworks.install
> build
> clean
> deployment.tools
> dist
> docs
> docs-clean
> examples
> examples.install
> frameworks
> frameworks.install
> plugins
> tests
> tests.run
> usage
> Default target: usage
> ruggiero@gugus_$ grep -i version pom.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <modelVersion>4.0.0</modelVersion>
> <version>7.1-SNAPSHOT</version>
> <webobjects.version>5.4.3</webobjects.version>
> <version>2.2.1</version>
> <version>2.3.1</version>
> [... SNIP...]
> <version>2.2.1</version>
> <version>1.1.1</version>
> <uniqueVersion>false</uniqueVersion>
> ruggiero@gugus_$ ant docs
> Buildfile: /Developer/SourceDistributions/WonderSource/build.xml
>
> docs:
>
> prepare:
>
> build:
>
> api:
> [copy] Copying 2 files to
> /Developer/SourceDistributions/WonderSource/dist/wonder
> [javadoc] Generating Javadoc
> [javadoc] Javadoc execution
>
> [... SNIP...]
>
>
> [javadoc] writing for key: er.directtoweb.excel
> [javadoc] writing for key: er.directtoweb.pages
> [javadoc] writing for key: er.directtoweb.pages.templates
> [javadoc] writing for key: er.directtoweb.printerfriendly
> [javadoc] writing for key: er.directtoweb.xml
> [javadoc] writing for key: er.modern.directtoweb.components
> [javadoc] writing for key: er.modern.look.pages
> [javadoc] writing for key: er.mootools.directtoweb.components
> [javadoc] writing for key: er.neutral
> [javadoc] 32 warnings
> [echo] d2wkeys javadoc page generation finished
>
> BUILD SUCCESSFUL
> Total time: 1 minute 21 seconds
> ruggiero@gugus_$
>
>
>
>
> <PastedGraphic-1.png>
>
>> On 28 Nov 2017, at 15:36, Johann Werner <email@hidden> wrote:
>>
>> Hi Markus,
>>
>> how do you build the docs? Looking at the ant files this is how it is
>> supposed to be done:
>>
>> $ cd […]/Wonder
>> $ ant docs
>>
>> The target „docs“ is defined within the build.xml in the root directory of
>> Wonder. From there it points to the file Build/build/build-doc.xml and its
>> target „api“.
>>
>> The important bits of that build-doc.xml are the two lines (13 and 14):
>>
>> <artifact:pom id="wonder-version" file="pom.xml" />
>> <property name="project.version" value="${wonder-version.version}" />
>>
>> The file pom.xml in the root directory of Wonder is read (actually a maven
>> build file) and its value for version is copied into the ant variable
>> „project.version“. In pom.xml you can find something like:
>>
>> <version>7.1-SNAPSHOT</version>
>>
>> So the value should be populated automatically. Just tested it manually on
>> my local machine and the correct version string showed up. Could it be that
>> you are running the ant command from a different directory than Wonder’s
>> root? That could result in ant not finding the referenced pom.xml file.
>>
>> jw
>>
>>
>>> Am 28.11.2017 um 10:54 schrieb Markus Ruggiero <email@hidden>:
>>>
>>> Nobody? I clearly must miss something here and could use a bit of
>>> handhelding.
>>>
>>>
>>>> On 24 Nov 2017, at 12:56, Markus Ruggiero <email@hidden>
>>>> wrote:
>>>>
>>>> Building Wonder 7 with ant from terminal works perfectly. However building
>>>> the docs seems not to properly translate ${wonder-version.version} into a
>>>> nice version string but puts it literally into the html files.
>>>>
>>>> Must be a small thing, but it's a bit annoying. Any idea where to look so
>>>> I can fix this? The build process looks a bit convoluted (at least to me)
>>>> and I am not (yet?) the real ant and maven guru.
>>>>
>>>> Thanks
>>>> ---markus---
>>>> _______________________________________________
>>>> 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