Hello Rett,
as you said, the "root" script generates the source code for each
edition in the "build/temp/<edition>" directory plus a dedicated build
script ("build/temp/<edition>/build.xml").
Then, it launches each edition build script (including compilation, test
phases, etc) as usual. I'm aware the result of the test phases are not
taken into account at the "root" script level... That's very annoying, I
have to fix that quickly.
If you want to run a particular edition build, just launch the
"generate" task with the root script, then go to the
"build/temp/<edition>" directory and launch "directly" the build script.
>it seems like the build system doesn't support compiling and testing
from the root (i.e., directly from the actual source).
yes, you're right. And your comment is very interesting, we will discuss
that point with Jérôme.
>That's a lot of overhead, particularly if you're trying to do TDD.
I agree with you. The support of the "Restlet editions" is quite recent,
so any comment will help.
best regards,
Thierry Boileau
you can see this page for some details about the building of the Restlet
editions =>
http://wiki.restlet.org/developers/267-restlet.html> Hi,
>
> I'm working on fixing issue #892, but I've run into a snag. I'm
> trying to figure out how to run the tests under the new editions
> scheme. There's no longer a top-level build script, so I can't run
> them there. When I run `ant build` under the build directory, it
> generates a bunch of code, then runs the entire test suite and fails
> without indicating which test failed.
>
> I tracked down the failure eventually (it's in ZipClientTestCase).
> However, the specific failure isn't what I'm interested in. How do
> you guys work with Restlet under the new scheme? I may be missing
> something (please let me know!), but it seems like the build system
> doesn't support compiling and testing from the root (i.e., directly
> from the actual source). This implies that you have to regenerate an
> entire edition's source code before you can test one change. That's a
> lot of overhead, particularly if you're trying to do TDD. Am I
> understanding things correctly?
>
> Thanks,
> Rhett
>
> ------------------------------------------------------
>
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2391733>
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2393042