If the tests fail because of the JDK implementation, so will your app.
On Jun 19, 2011 7:31 AM, "françois facon" <[email protected]> wrote:
> Hi Martijin
>
> gradle build –x test to skip test during build process
> gradle install -x test to skip test during build process
>
> you can skip test on specific module with -x test:tapestry-ioc (6
> tests fails on my cygwin side)
>
> François
>
> 2011/6/19 martijn.list <[email protected]>:
>> On 06/19/2011 02:57 PM, Josh Canfield wrote:
>>> Hmm, as a reference point can you try with the Sun JDK?
>>
>> "gradle install" succeeds if I run in with the SUN JDK but always fails
>> when building on OpenJDK with the following errors:
>>
>> [ant:javac]
>>
/home/build/src/tapestry/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/FieldValidatorSourceImpl.java:81:
>>
expandMacros(java.util.List<org.apache.tapestry5.internal.services.ValidatorSpecification>)
>> in org.apache.tapestry5.internal.services.FieldValidatorSourceImpl
>> cannot be applied to (java.util.List<java.lang.Object>)
>> [ant:javac]         List<ValidatorSpecification> specs =
>> expandMacros(newList(originalSpec));
>> [ant:javac]                                              ^
>> [ant:javac]
>>
/home/build/src/tapestry/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/MarkupWriterImpl.java:264:
>> incompatible types
>> [ant:javac] found   : java.lang.Object
>> [ant:javac] required: org.apache.tapestry5.MarkupWriterListener
>> [ant:javac]         for (MarkupWriterListener l :
>> CollectionFactory.newList(listeners))
>> [ant:javac]
 ^
>> [ant:javac]
>>
/home/build/src/tapestry/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/MarkupWriterImpl.java:279:
>> incompatible types
>> [ant:javac] found   : java.lang.Object
>> [ant:javac] required: org.apache.tapestry5.MarkupWriterListener
>> [ant:javac]         for (MarkupWriterListener l :
>> CollectionFactory.newList(listeners))
>> [ant:javac]
 ^
>> [ant:javac]
>>
/home/build/src/tapestry/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/javascript/DateFieldStack.java:78:
>> warning: non-varargs call of varargs method with inexact argument type
>> for last parameter;
>> [ant:javac] cast to java.lang.Object for a varargs call
>> [ant:javac] cast to java.lang.Object[] for a non-varargs call and to
>> suppress this warning
>> [ant:javac]         spec.put("months", new
JSONArray(symbols.getMonths()));
>> [ant:javac]                                                           ^
>> [ant:javac]
>>
/home/build/src/tapestry/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/transform/ComponentWorker.java:124:
>> setPublishedParameters(java.util.List<java.lang.String>) in
>> org.apache.tapestry5.model.MutableEmbeddedComponentModel cannot be
>> applied to (java.util.List<java.lang.Object>)
>> [ant:javac]
>>
embedded.setPublishedParameters(CollectionFactory.newList(TapestryInternalUtils.splitAtCommas(names)));
>> [ant:javac]                     ^
>> [ant:javac] Note: Some input files use or override a deprecated API.
>> [ant:javac] Note: Recompile with -Xlint:deprecation for details.
>> [ant:javac] Note: Some input files use unchecked or unsafe operations.
>> [ant:javac] Note: Recompile with -Xlint:unchecked for details.
>> [ant:javac] 4 errors
>> [ant:javac] 1 warning
>>
>>
>>
>> "gradle build" however always fails but this seems to be caused by not
>> being able to start Firefox. I'm building on a headless server (i.e., no
>> X). Is it possible to skip this test?
>>
>> Kind regards,
>>
>> Martijn
>>
>>
>>> On Jun 19, 2011 4:28 AM, "martijn.list" <[email protected]> wrote:
>>>> I tried to install Tapestry 5 trunk on a freshly installed Ubuntu 10.04
>>>> server.
>>>>
>>>> This is what I did:
>>>>
>>>> 1. installed OpenJDK, Maven, Ant and Gradle, subversion
>>>> 2. checked out Tapestry 5 Trunk
>>>> 3. Tried to build Tapestry
>>>>
>>>> Step 3 wasn't successful. Whatever I tried, I always ended up with some
>>>> vague error message that either a test failed or that there were some
>>>> compile errors.
>>>>
>>>> For example:
>>>>
>>>> Running the install task
>>>>
>>>> $ gradle install
>>>>
>>>> resulted in:
>>>>
>>>> [ant:javac]
>>>>
>>>
/home/build/src/tapestry/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/FieldValidatorSourceImpl.java:81:
>>>>
>>>
expandMacros(java.util.List<org.apache.tapestry5.internal.services.ValidatorSpecification>)
>>>> in org.apache.tapestry5.internal.services.FieldValidatorSourceImpl
>>>> cannot be applied to (java.util.List<java.lang.Object>)
>>>> [ant:javac] List<ValidatorSpecification> specs =
>>>> expandMacros(newList(originalSpec));
>>>> [ant:javac] ^
>>>> [ant:javac]
>>>>
>>>
/home/build/src/tapestry/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/MarkupWriterImpl.java:264:
>>>> incompatible types
>>>> [ant:javac] found : java.lang.Object
>>>> [ant:javac] required: org.apache.tapestry5.MarkupWriterListener
>>>> [ant:javac] for (MarkupWriterListener l :
>>>> CollectionFactory.newList(listeners))
>>>> [ant:javac]
>>>>
>>>> [SNIP]
>>>>
>>>> [ant:javac] ^
>>>> [ant:javac] Note: Some input files use or override a deprecated API.
>>>> [ant:javac] Note: Recompile with -Xlint:deprecation for details.
>>>> [ant:javac] Note: Some input files use unchecked or unsafe operations.
>>>> [ant:javac] Note: Recompile with -Xlint:unchecked for details.
>>>> [ant:javac] 4 errors
>>>> [ant:javac] 1 warning
>>>>
>>>>
>>>> Running the build task
>>>>
>>>> $ gradle build
>>>>
>>>> resulted in:
>>>>
>>>> :plastic:test
>>>> Test org.apache.tapestry5.plastic.FieldPropertyMethodCreation FAILED
>>>> 107 tests completed, 1 failure
>>>>
>>>> FAILURE: Build failed with an exception.
>>>>
>>>> * What went wrong:
>>>> Execution failed for task ':plastic:test'.
>>>> Cause: There were failing tests. See the report at
>>>> /home/build/src/tapestry/trunk/plastic/build/reports/tests.
>>>>
>>>> * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with --info or
>>>> --debug option to get more log output.
>>>>
>>>> BUILD FAILED
>>>>
>>>>
>>>> I clearly must be doing wrong. Is there a guide on how to build
Tapestry
>>>> from source?
>>>>
>>>> Kind regards,
>>>>
>>>> Martijn Brinkers
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>
>>
>>
>> --
>> Djigzo open source email encryption
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to