Problem compiling from source

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem compiling from source

Brian Weaver-4
Hi All,

I recently checked out a copy of the ops code from CVS and I'm trying
to build from source. When I try to compile I run into problems when
it calls the optional Xalan taskdefs: XalanLiaison & XslpLiaison.

I've searched on Google and browsed the Xalan project on Apache and I
cannot seem to find any jar files with the ant taskdefs that Orbeon is
failing on.

Is anyone else having this problem? Anyone got any pointers on how to fix it?

Thanks

-Brian Weaver

--

/* insert witty comment here */



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling from source

Brian Weaver-4
I guess it helps to have all the packages. I'm running under Ubuntu
6.06 and once I installed the package 'ant-optional' everything worked
OK

-Brian

On 9/1/06, Brian Weaver <[hidden email]> wrote:

> Hi All,
>
> I recently checked out a copy of the ops code from CVS and I'm trying
> to build from source. When I try to compile I run into problems when
> it calls the optional Xalan taskdefs: XalanLiaison & XslpLiaison.
>
> I've searched on Google and browsed the Xalan project on Apache and I
> cannot seem to find any jar files with the ant taskdefs that Orbeon is
> failing on.
>
> Is anyone else having this problem? Anyone got any pointers on how to fix it?
>
> Thanks
>
> -Brian Weaver
>
> --
>
> /* insert witty comment here */
>

--

/* insert witty comment here */



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem compiling from source

Erik Bruchez
Administrator
Brian,

You can also run build.sh, which should use the ant binary that is
checked in with the sources. In theory you don't need anything besides a
recent JDK and the sources from CVS.

-Erik

Brian Weaver wrote:

> I guess it helps to have all the packages. I'm running under Ubuntu
> 6.06 and once I installed the package 'ant-optional' everything worked
> OK
>
> -Brian
>
> On 9/1/06, Brian Weaver <[hidden email]> wrote:
>> Hi All,
>>
>> I recently checked out a copy of the ops code from CVS and I'm trying
>> to build from source. When I try to compile I run into problems when
>> it calls the optional Xalan taskdefs: XalanLiaison & XslpLiaison.
>>
>> I've searched on Google and browsed the Xalan project on Apache and I
>> cannot seem to find any jar files with the ant taskdefs that Orbeon is
>> failing on.
>>
>> Is anyone else having this problem? Anyone got any pointers on how to
>> fix it?
>>
>> Thanks
>>
>> -Brian Weaver
>>
>> --
>>
>> /* insert witty comment here */
>>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem compiling from source

Brian Weaver-4
Hum..... I probably would have done that if it existed, did I miss
something in my directory listing?

weave@daffy:~/devel/orbeon.cvs (cvs)$ cvs up -Pd
? orbeon/build.xml.mod
weave@daffy:~/devel/orbeon.cvs (cvs)$ ls -l orbeon/
total 148
drwxr-xr-x 8 weave weave  4096 2006-09-01 12:11 build
-rw-r--r-- 1 weave weave  1219 2004-11-09 19:45 build.bat
-rw-r--r-- 1 weave weave 37782 2006-09-01 12:05 build.xml
-rw-r--r-- 1 weave weave 37800 2006-09-01 12:04 build.xml.mod
-rw-r--r-- 1 weave weave  1756 2005-06-10 21:44 clean.launch
drwxr-xr-x 2 weave weave  4096 2006-09-01 12:05 CVS
drwxr-xr-x 6 weave weave  4096 2006-09-01 12:04 descriptors
drwxr-xr-x 6 weave weave  4096 2006-09-01 12:04 doc
drwxr-xr-x 3 weave weave  4096 2006-09-01 10:05 lib
-rw-r--r-- 1 weave weave  1337 2005-06-10 21:44 ops-war.launch
-rw-r--r-- 1 weave weave  1459 2005-06-10 21:50 oxf-eclipse-prepare.launch
-rw-r--r-- 1 weave weave  1644 2004-10-24 20:48 oxf-launch.launch
drwxr-xr-x 5 weave weave  4096 2006-08-30 18:47 oxfmark
-rw-r--r-- 1 weave weave    21 2006-09-01 09:50 oxf.version
-rw-r--r-- 1 weave weave  1154 2005-07-12 19:01 runtests.launch
drwxr-xr-x 7 weave weave  4096 2006-08-30 18:47 src
drwxr-xr-x 4 weave weave  4096 2006-08-30 18:47 test
drwxr-xr-x 5 weave weave  4096 2006-08-30 18:48 tools
drwxr-xr-x 3 weave weave  4096 2006-08-31 11:53 WEB-INF

-Brian

On 9/1/06, Erik Bruchez <[hidden email]> wrote:

> Brian,
>
> You can also run build.sh, which should use the ant binary that is
> checked in with the sources. In theory you don't need anything besides a
> recent JDK and the sources from CVS.
>
> -Erik
>
> Brian Weaver wrote:
> > I guess it helps to have all the packages. I'm running under Ubuntu
> > 6.06 and once I installed the package 'ant-optional' everything worked
> > OK
> >
> > -Brian
> >
> > On 9/1/06, Brian Weaver <[hidden email]> wrote:
> >> Hi All,
> >>
> >> I recently checked out a copy of the ops code from CVS and I'm trying
> >> to build from source. When I try to compile I run into problems when
> >> it calls the optional Xalan taskdefs: XalanLiaison & XslpLiaison.
> >>
> >> I've searched on Google and browsed the Xalan project on Apache and I
> >> cannot seem to find any jar files with the ant taskdefs that Orbeon is
> >> failing on.
> >>
> >> Is anyone else having this problem? Anyone got any pointers on how to
> >> fix it?
> >>
> >> Thanks
> >>
> >> -Brian Weaver
> >>
> >> --
> >>
> >> /* insert witty comment here */
> >>
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email] mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
> --
> Orbeon - XForms Everywhere:
> http://www.orbeon.com/blog/
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--

/* insert witty comment here */



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem compiling from source

Erik Bruchez
Administrator
Sorry, my fault: no build.sh is checked-in. Try something in this style:

#! /bin/sh

export JAVA_HOME=...
export BUILD_ROOT=...

export ANT_HOME=${BUILD_ROOT}/tools/ant
export CLASSPATH=${BUILD_ROOT}/build/tools/ant/tasks
export DEBUG_ENABLED=true

${ANT_HOME}/bin/ant -Djava.home=${JAVA_HOME} -Dant.home=${ANT_HOME}
-Dbuild.root=${BUILD_ROOT} -Ddebug.enabled=${DEBUG_ENABLED}

I am not sure if you actually need to set build.root as there is a
default in build.xml.

-Erik

Brian Weaver wrote:

> Hum..... I probably would have done that if it existed, did I miss
> something in my directory listing?
>
> weave@daffy:~/devel/orbeon.cvs (cvs)$ cvs up -Pd
> ? orbeon/build.xml.mod
> weave@daffy:~/devel/orbeon.cvs (cvs)$ ls -l orbeon/
> total 148
> drwxr-xr-x 8 weave weave  4096 2006-09-01 12:11 build
> -rw-r--r-- 1 weave weave  1219 2004-11-09 19:45 build.bat
> -rw-r--r-- 1 weave weave 37782 2006-09-01 12:05 build.xml
> -rw-r--r-- 1 weave weave 37800 2006-09-01 12:04 build.xml.mod
> -rw-r--r-- 1 weave weave  1756 2005-06-10 21:44 clean.launch
> drwxr-xr-x 2 weave weave  4096 2006-09-01 12:05 CVS
> drwxr-xr-x 6 weave weave  4096 2006-09-01 12:04 descriptors
> drwxr-xr-x 6 weave weave  4096 2006-09-01 12:04 doc
> drwxr-xr-x 3 weave weave  4096 2006-09-01 10:05 lib
> -rw-r--r-- 1 weave weave  1337 2005-06-10 21:44 ops-war.launch
> -rw-r--r-- 1 weave weave  1459 2005-06-10 21:50 oxf-eclipse-prepare.launch
> -rw-r--r-- 1 weave weave  1644 2004-10-24 20:48 oxf-launch.launch
> drwxr-xr-x 5 weave weave  4096 2006-08-30 18:47 oxfmark
> -rw-r--r-- 1 weave weave    21 2006-09-01 09:50 oxf.version
> -rw-r--r-- 1 weave weave  1154 2005-07-12 19:01 runtests.launch
> drwxr-xr-x 7 weave weave  4096 2006-08-30 18:47 src
> drwxr-xr-x 4 weave weave  4096 2006-08-30 18:47 test
> drwxr-xr-x 5 weave weave  4096 2006-08-30 18:48 tools
> drwxr-xr-x 3 weave weave  4096 2006-08-31 11:53 WEB-INF
>
> -Brian
>
> On 9/1/06, Erik Bruchez <[hidden email]> wrote:
>> Brian,
>>
>> You can also run build.sh, which should use the ant binary that is
>> checked in with the sources. In theory you don't need anything besides a
>> recent JDK and the sources from CVS.
>>
>> -Erik
>>
>> Brian Weaver wrote:
>> > I guess it helps to have all the packages. I'm running under Ubuntu
>> > 6.06 and once I installed the package 'ant-optional' everything worked
>> > OK
>> >
>> > -Brian
>> >
>> > On 9/1/06, Brian Weaver <[hidden email]> wrote:
>> >> Hi All,
>> >>
>> >> I recently checked out a copy of the ops code from CVS and I'm trying
>> >> to build from source. When I try to compile I run into problems when
>> >> it calls the optional Xalan taskdefs: XalanLiaison & XslpLiaison.
>> >>
>> >> I've searched on Google and browsed the Xalan project on Apache and I
>> >> cannot seem to find any jar files with the ant taskdefs that Orbeon is
>> >> failing on.
>> >>
>> >> Is anyone else having this problem? Anyone got any pointers on how to
>> >> fix it?
>> >>
>> >> Thanks
>> >>
>> >> -Brian Weaver
>> >>
>> >> --
>> >>
>> >> /* insert witty comment here */
>> >>
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> >
>> > --
>> > You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> > To unsubscribe: mailto:[hidden email]
>> > For general help: mailto:[hidden email]?subject=help
>> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>> --
>> Orbeon - XForms Everywhere:
>> http://www.orbeon.com/blog/
>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem compiling from source

Brian Weaver-4
Thanks for the tip, but it wasn't an issue after I installed the
package with all the optional ant tasks. The first one to trip me up
with the XSLT Transforms, then the optional regex processing.

I've built it successfully now, not that it matters much. I started
digging around in the code to understand what's going on and how it
works. It's complex enough and large enough that it's going to take me
a while to sort it all out mentally.

BTW, what the patch and contribution norms for this project? It might
take me a while to learn my way around but I see one area when I can
probably contribute..... documentation.  Most of the files I've looked
at so far do not have one iota of javadoc comments short of the LGPL
header.

I'm not trying to offend anyone. I'm no better than any other
developer. I don't exactly like documentation either, but I learned
long ago if I didn't do it when I was writing my code then I would
never do it. I just figured if I was going to have to learn my way
around I would take notes so that the next person would have a "guide"
to help them along.

-Brian

On 9/1/06, Erik Bruchez <[hidden email]> wrote:

> Sorry, my fault: no build.sh is checked-in. Try something in this style:
>
> #! /bin/sh
>
> export JAVA_HOME=...
> export BUILD_ROOT=...
>
> export ANT_HOME=${BUILD_ROOT}/tools/ant
> export CLASSPATH=${BUILD_ROOT}/build/tools/ant/tasks
> export DEBUG_ENABLED=true
>
> ${ANT_HOME}/bin/ant -Djava.home=${JAVA_HOME} -Dant.home=${ANT_HOME}
> -Dbuild.root=${BUILD_ROOT} -Ddebug.enabled=${DEBUG_ENABLED}
>
> I am not sure if you actually need to set build.root as there is a
> default in build.xml.
>
> -Erik
>
> Brian Weaver wrote:
> > Hum..... I probably would have done that if it existed, did I miss
> > something in my directory listing?
> >
> > weave@daffy:~/devel/orbeon.cvs (cvs)$ cvs up -Pd
> > ? orbeon/build.xml.mod
> > weave@daffy:~/devel/orbeon.cvs (cvs)$ ls -l orbeon/
> > total 148
> > drwxr-xr-x 8 weave weave  4096 2006-09-01 12:11 build
> > -rw-r--r-- 1 weave weave  1219 2004-11-09 19:45 build.bat
> > -rw-r--r-- 1 weave weave 37782 2006-09-01 12:05 build.xml
> > -rw-r--r-- 1 weave weave 37800 2006-09-01 12:04 build.xml.mod
> > -rw-r--r-- 1 weave weave  1756 2005-06-10 21:44 clean.launch
> > drwxr-xr-x 2 weave weave  4096 2006-09-01 12:05 CVS
> > drwxr-xr-x 6 weave weave  4096 2006-09-01 12:04 descriptors
> > drwxr-xr-x 6 weave weave  4096 2006-09-01 12:04 doc
> > drwxr-xr-x 3 weave weave  4096 2006-09-01 10:05 lib
> > -rw-r--r-- 1 weave weave  1337 2005-06-10 21:44 ops-war.launch
> > -rw-r--r-- 1 weave weave  1459 2005-06-10 21:50 oxf-eclipse-prepare.launch
> > -rw-r--r-- 1 weave weave  1644 2004-10-24 20:48 oxf-launch.launch
> > drwxr-xr-x 5 weave weave  4096 2006-08-30 18:47 oxfmark
> > -rw-r--r-- 1 weave weave    21 2006-09-01 09:50 oxf.version
> > -rw-r--r-- 1 weave weave  1154 2005-07-12 19:01 runtests.launch
> > drwxr-xr-x 7 weave weave  4096 2006-08-30 18:47 src
> > drwxr-xr-x 4 weave weave  4096 2006-08-30 18:47 test
> > drwxr-xr-x 5 weave weave  4096 2006-08-30 18:48 tools
> > drwxr-xr-x 3 weave weave  4096 2006-08-31 11:53 WEB-INF
> >
> > -Brian
> >
> > On 9/1/06, Erik Bruchez <[hidden email]> wrote:
> >> Brian,
> >>
> >> You can also run build.sh, which should use the ant binary that is
> >> checked in with the sources. In theory you don't need anything besides a
> >> recent JDK and the sources from CVS.
> >>
> >> -Erik
> >>
> >> Brian Weaver wrote:
> >> > I guess it helps to have all the packages. I'm running under Ubuntu
> >> > 6.06 and once I installed the package 'ant-optional' everything worked
> >> > OK
> >> >
> >> > -Brian
> >> >
> >> > On 9/1/06, Brian Weaver <[hidden email]> wrote:
> >> >> Hi All,
> >> >>
> >> >> I recently checked out a copy of the ops code from CVS and I'm trying
> >> >> to build from source. When I try to compile I run into problems when
> >> >> it calls the optional Xalan taskdefs: XalanLiaison & XslpLiaison.
> >> >>
> >> >> I've searched on Google and browsed the Xalan project on Apache and I
> >> >> cannot seem to find any jar files with the ant taskdefs that Orbeon is
> >> >> failing on.
> >> >>
> >> >> Is anyone else having this problem? Anyone got any pointers on how to
> >> >> fix it?
> >> >>
> >> >> Thanks
> >> >>
> >> >> -Brian Weaver
> >> >>
> >> >> --
> >> >>
> >> >> /* insert witty comment here */
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> ------------------------------------------------------------------------
> >> >
> >> >
> >> > --
> >> > You receive this message as a subscriber of the
> >> [hidden email] mailing list.
> >> > To unsubscribe: mailto:[hidden email]
> >> > For general help: mailto:[hidden email]?subject=help
> >> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >>
> >>
> >> --
> >> Orbeon - XForms Everywhere:
> >> http://www.orbeon.com/blog/
> >>
> >>
> >>
> >>
> >> --
> >> You receive this message as a subscriber of the
> >> [hidden email] mailing list.
> >> To unsubscribe: mailto:[hidden email]
> >> For general help: mailto:[hidden email]?subject=help
> >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >>
> >>
> >>
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email] mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
> --
> Orbeon - XForms Everywhere:
> http://www.orbeon.com/blog/
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--

/* insert witty comment here */



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem compiling from source

Erik Bruchez
Administrator
Brian,

 > BTW, what the patch and contribution norms for this project?

There are no strict policies on patches, but we gladly accept them
(although historically we have been sometimes slow to integrate them,
but we hope to get better ;-).

 > It might take me a while to learn my way around but I see one area
 > when I can probably contribute..... documentation. Most of the files
 > I've looked at so far do not have one iota of javadoc comments short
 > of the LGPL header.

I see at least minimal Javadoc in many files, but we probably looked
at different files. What classes were you looking at?

Javadoc comments are a double-edged sword. For public APIs, there
should definitely be such documentation, and it should be
maintained. For implementation code, that's another question, because
comments and code easily get out of sync.

So personally, I (try to) mostly document tricky methods using
Javadoc. Otherwise, I tend to put comments within the body of the
function where they are I think the most useful, and where they are
also the most likely to get updated when the actual code change.

 > I'm not trying to offend anyone. I'm no better than any other
 > developer. I don't exactly like documentation either, but I learned
 > long ago if I didn't do it when I was writing my code then I would
 > never do it. I just figured if I was going to have to learn my way
 > around I would take notes so that the next person would have a
 > "guide" to help them along.

That would be great. For sure, feel free to send those notes as you
go, and if they are useful for other people we can integrate them.

-Erik

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem compiling from source

Brian Weaver-4
Erik,

Javadoc comments and code only get out of sync when the developers are
lazy, apathetic, or sloppy. Nothing a public flogging couldn't fix!

Seriously though, it is easy for javadoc comments and the code to get
out of sync when programmers lack proper discipline or incentive. From
my perspective a seasoned developer doesn't let that happen because
they view the comments as an extension of the source. It's unfortunate
that the programming trade has the perception that documentation isn't
very important.

Sorry to rant. I just happen to hold a different perspective on the
value of documentation. I get paid for writing code, and my employeer
does consider documentation as part of the code.

Time to dive back into the source and expand my knowledge of the
Orbeon code base.

-Brian

On 9/2/06, Erik Bruchez <[hidden email]> wrote:
> Javadoc comments are a double-edged sword. For public APIs, there
> should definitely be such documentation, and it should be
> maintained. For implementation code, that's another question, because
> comments and code easily get out of sync.
>

--

/* insert witty comment here */



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws