You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Markus Angst <ma...@inventec.ch> on 2006/08/29 21:14:51 UTC

Windows XP build problems [was: 1.4x howto new publication]

Hello Michael,

Michael Wohlfart wrote:
> Hello,
> 
> thanks for your feedback
> 
> Markus Angst wrote:
> [...]
>>> * Subversion checkout https://svn.apache.org/repos/asf/lenya/trunk
>>> * > build
>>> * migrate to UUIDs:
>>>   > build module.test -Dmodule=org.apache.lenya.modules.migration
 >>
>> I am running Windows XP, Java 1.5. I made a fresh checkout of the trunk
>> this afternoon and found some problems.
>>
>> While running build I get the following error:
>>
>> C:\lenya\lenya-1.4-dev\src\targets\properties-build.xml:155:
>> taskdef class org.apache.lenya.cms.ant.CopyJavaSourcesTask cannot be found
> 
> WinXP and JDK1.5 here too, i just did a fresh checkout but i can't reproduce 
> this problem
> 
>> When I change line 154 in src/targets/properties-build.xml from
>>
>> <target name="init-tasks" depends="cocoon-init-tasks">
>>
>> to
>>
>> <target name="init-tasks" depends="cocoon-init-tasks, compile-build-tasks">
>>
>> the build works. My java/ant knowledge is very basic. I am not stating
>> that this is the right place for the dependency of compile-build-tasks;
>> the only thing I want to say is that I guess that compile-build-tasks
>> (or any other task that is compiling CopyJavaSourcesTask) should be
>> executed somewhere.
>> (I also got the impression that a build clean-all is not deleting the
>> files in tools\anttasks\build\classes\org\apache\lenya\cms\ant. 
> [...]
> 
> you are right, the compile-build-tasks target was nowhere used and it
> seems like the class files in 
> tools\anttasks\build\classes\org\apache\lenya\cms\ant
> came already build from my subversion checkout ?-/

Thanks. That got me one step further. When I browse the SVN repository, I can 
see the class files, too. I made a fresh checkout again, and... there came the 
files! I definitely can't find out what went wrong the first time (I am using 
Subclipse and didn't change any settings between the two runs). Sorry for the noise.

When I run build now, I get exactly the same error that you described in your 
bugzilla entry: http://issues.apache.org/bugzilla/show_bug.cgi?id=40113. So I 
start to feel pretty normal now ;-) I will apply your patch and comment in 
bugzilla after that.
BTW: what do you mean by "looks like i got the wrong transformer in my 
environment"? What would I have to look after to confirm this?

Thanks again!

Markus Angst


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Windows XP build problems [was: 1.4x howto new publication]

Posted by Andreas Hartmann <an...@apache.org>.
Markus Angst wrote:

[...]

> AFAIK the lenya build target "eclipse-project" would be a starting 
> point. Not sure if this is officially supported though...

Yes, it is officially supported.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Windows XP build problems [was: 1.4x howto new publication]

Posted by Markus Angst <ma...@inventec.ch>.
Hi Michael,

>> When I run build now, I get exactly the same error that you described in
>> your bugzilla entry:
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=40113. So I start to
>> feel pretty normal now ;-) I will apply your patch and comment in
>> bugzilla after that.
>> BTW: what do you mean by "looks like i got the wrong transformer in my
>> environment"? What would I have to look after to confirm this?
> 
> As far as i understand this bug the document() selects in the modules2build.xsl 
> stylesheet which is used to generate the depends in the target 
> patch-modules-test didn't work in my environment. I changed the templates
> that should generate the depends, but each time i tried to access a file with 
> the document() select it didn't return anything, so i thought it may be a 
> problem with the xsl transformer...
> I looked up the ant xslt task to see if i could use a different xsl 
> transformer and tried them out one by one, seems like trax finally did the job.

My java/ant knowledge is somewhat basic, so the following is just an idea.

Looking at http://www.zvon.org/xxl/XSLTreference/Output/function_document.html I 
see:
[...] If there is an error retrieving the resource, then the XSLT processor may 
signal an error; if it does not signal an error, it must recover by returning an 
empty node-set. One possible kind of retrieval error is that the XSLT processor 
does not support the URI scheme used by the URI. An XSLT processor is not 
required to support any particular URI schemes. [...]

Looks to me like a good description of what's happening here... Maybe something 
is working fine under Unix/Linux and not working properly under Windows?

> BTW if you are using Subclipse you probably have Lenya compiling in Eclipse, is 
> there any good tutorial about how to do this ?

No, sorry, I don't compile in Eclipse; I run build.bat. I use Subclipse because 
I know it a little bit, I use it for other stuff  and it works for me.
AFAIK the lenya build target "eclipse-project" would be a starting point. Not 
sure if this is officially supported though...

Thanks
Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Windows XP build problems [was: 1.4x howto new publication]

Posted by Michael Wohlfart <mi...@wohlfart.net>.
Hi Markus,

Markus Angst wrote:
[...]
>> you are right, the compile-build-tasks target was nowhere used and it
>> seems like the class files in
>> tools\anttasks\build\classes\org\apache\lenya\cms\ant
>> came already build from my subversion checkout ?-/
> 
> Thanks. That got me one step further. When I browse the SVN repository,
> I can see the class files, too. I made a fresh checkout again, and...
> there came the files! I definitely can't find out what went wrong the
> first time (I am using Subclipse and didn't change any settings between
> the two runs). Sorry for the noise.
> 
> When I run build now, I get exactly the same error that you described in
> your bugzilla entry:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=40113. So I start to
> feel pretty normal now ;-) I will apply your patch and comment in
> bugzilla after that.
> BTW: what do you mean by "looks like i got the wrong transformer in my
> environment"? What would I have to look after to confirm this?

As far as i understand this bug the document() selects in the modules2build.xsl 
stylesheet which is used to generate the depends in the target 
patch-modules-test didn't work in my environment. I changed the templates
that should generate the depends, but each time i tried to access a file with 
the document() select it didn't return anything, so i thought it may be a 
problem with the xsl transformer...
I looked up the ant xslt task to see if i could use a different xsl 
transformer and tried them out one by one, seems like trax finally did the job.

BTW if you are using Subclipse you probably have Lenya compiling in Eclipse, is 
there any good tutorial about how to do this ?

thanks
Michael






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org