|Subject:||Re: [trails-dev] Building code from cvs|
|From:||Chris Nelson (cnel...@yahoo.com)|
|Date:||Jun 11, 2005 9:49:16 am|
First off, thanks for being an early adopter :) Sounds like you've found a few things I need to clean up. I checked into a new version of build.xml to call build-hibernate-config. Also, I removed the JAX_RPC dependency. Initially I was using their APT ant task, but then I found that ant had already made such a task and so I am using theirs. It will be part of Ant 1.7, but for now I need to install it so you need to be sure and have your ANT_HOME env variable set for the build to be able to do this. I just ran the all target and it worked.
Probably the best way to upgrade your project (if you don't have any custom pages) is to use the create-new-project and copy in your domain objects. If you have custom pages there may be some changes you need to make.
Let me know how it goes. Also, don't get too attached to the Appearance annotation, I'm about to do some refactoring. My thought is to separate into PropertyDescriptor and ClassDescriptor and have their attributes be the same as the interface properties.
--- paul...@visi.com wrote:
I'm trying to build the "latest" code from cvs (actually a couple days old.)
Here's my `trail` so far (excuse the bad pun, it is Friday). I'm on jdk 1.5.0_02 and using the default ant target
1. build initially failed because it depended on jax-rpc which i didn't have. went and got jax-rpc, seemed to be the early access release of jax-rpc 2 that is needed for the annotation processing tool (?) pointed environment variable JAXRPC_HOME to the relevant install directory
2. build got further but failed on the `hibernatedoclet` with "Error parsing File ...\trails\test\org\....\Baz.java : Lexical error: .... It seemed to be complaining at the hibernate annotations encountered during doclet processing. But I'm not sure.
3. i modified the depends in the `all` target in build.xml to replace `hibernatedoclet` with `build-hiberante-config` 9and moved it after compile.) The former seemed to be generating mappings using the xdoclet for the source under test, the latter appeared to be doing so from annotations for the same files.
4. The full build now completes compile, unit tests, etc.
Did I do the right thing here? I am about to convert my code over from trails 0.6 to the latest trails, as amongst other things i want to get familiar with the annotations and make use of the textarea feature i recently read about. Anything else i'll need to watch out for in that conversion?
Thanks -- Paul Devine
__________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/