You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Rm Beer <rm...@gmail.com> on 2015/02/02 19:57:42 UTC

ERROR compile with build.sh, not read the parameters.

I use a source code for linux and all settings variable for shell.

This line put in command shell:

./build.sh -Ddist.dir=/src/ant-apache/apache-ant-1.9.4/Build/
-Xlint:deprecation -Xlint:uncheked

and getting this result:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

with this finish result:

/src/ant-apache/apache-ant-1.9.4/src/tests/junit/org/apache/tools/ant/taskdefs/ExecuteWatchdogTest.java:143:
error: cannot access Matcher
                        throw new AssumptionViolatedException("process
interrupted in thread", e);
                              ^
  class file for org.hamcrest.Matcher not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
4 warnings

BUILD FAILED
/src/ant-apache/apache-ant-1.9.4/build.xml:1082: The following error
occurred while executing this line:
/src/ant-apache/apache-ant-1.9.4/build.xml:1502: Compile failed; see the
compiler error output for details.

i need a solution for this problem.

Re: ERROR compile with build.sh, not read the parameters.

Posted by Gintautas Grigelionis <g....@gmail.com>.
JUnit 4 depends in hamcrest-core
Den 2 feb 2015 20:59 skrev "Stefan Bodewig" <bo...@apache.org>:
>
> On 2015-02-02, Stefan Bodewig wrote:
>
> > On 2015-02-02, Rm Beer wrote:
>
> >> I use a source code for linux and all settings variable for shell.
>
> >> This line put in command shell:
>
> >> ./build.sh -Ddist.dir=/src/ant-apache/apache-ant-1.9.4/Build/
> >> -Xlint:deprecation -Xlint:uncheked
>
> >> and getting this result:
>
> >> Note: Some input files use or override a deprecated API.
> >> Note: Recompile with -Xlint:deprecation for details.
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
>
> >> with this finish result:
>
> >>
/src/ant-apache/apache-ant-1.9.4/src/tests/junit/org/apache/tools/ant/taskdefs/ExecuteWatchdogTest.java:143:
> >> error: cannot access Matcher
> >>                         throw new AssumptionViolatedException("process
> >> interrupted in thread", e);
> >>                               ^
> >>   class file for org.hamcrest.Matcher not found
>
> > This means Ant hasn't got hamcrest on its classpath, it should be part
> > of lib/optional
>
> so much is true - and it is even part of our git tree.
>
> > Ant ships with junit but not with hamcrest
>
> it is not part of the source distribution, I'm going to fix the build
> script for the next release.
>
> In the meantime, the solution for you is to download hamcrest-core - for
> example
> <
http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
>
> and place it in the lib/optional folder.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>

Re: ERROR compile with build.sh, not read the parameters.

Posted by Stefan Bodewig <bo...@apache.org>.
On 2015-02-02, Stefan Bodewig wrote:

> On 2015-02-02, Rm Beer wrote:

>> I use a source code for linux and all settings variable for shell.

>> This line put in command shell:

>> ./build.sh -Ddist.dir=/src/ant-apache/apache-ant-1.9.4/Build/
>> -Xlint:deprecation -Xlint:uncheked

>> and getting this result:

>> Note: Some input files use or override a deprecated API.
>> Note: Recompile with -Xlint:deprecation for details.
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.

>> with this finish result:

>> /src/ant-apache/apache-ant-1.9.4/src/tests/junit/org/apache/tools/ant/taskdefs/ExecuteWatchdogTest.java:143:
>> error: cannot access Matcher
>>                         throw new AssumptionViolatedException("process
>> interrupted in thread", e);
>>                               ^
>>   class file for org.hamcrest.Matcher not found

> This means Ant hasn't got hamcrest on its classpath, it should be part
> of lib/optional

so much is true - and it is even part of our git tree.

> Ant ships with junit but not with hamcrest

it is not part of the source distribution, I'm going to fix the build
script for the next release.

In the meantime, the solution for you is to download hamcrest-core - for
example
<http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar>
and place it in the lib/optional folder.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: ERROR compile with build.sh, not read the parameters.

Posted by Stefan Bodewig <bo...@apache.org>.
On 2015-02-02, Rm Beer wrote:

> I use a source code for linux and all settings variable for shell.

> This line put in command shell:

> ./build.sh -Ddist.dir=/src/ant-apache/apache-ant-1.9.4/Build/
> -Xlint:deprecation -Xlint:uncheked

> and getting this result:

> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.

> with this finish result:

> /src/ant-apache/apache-ant-1.9.4/src/tests/junit/org/apache/tools/ant/taskdefs/ExecuteWatchdogTest.java:143:
> error: cannot access Matcher
>                         throw new AssumptionViolatedException("process
> interrupted in thread", e);
>                               ^
>   class file for org.hamcrest.Matcher not found

This means Ant hasn't got hamcrest on its classpath, it should be part
of lib/optional after you've run fetch.xml.  Ant ships with junit but
not with hamcrest and it seems we've introduced a dependency on hamcrest
in our core tests - this leads to a bootstrap problem.

Can you bootstrap Ant by running ./bootstrap.sh ?  If so, you can run
the bootstrapped Ant on fetch.xml to pick up the remaining extra jars,
see http://ant.apache.org/manual/install.html#optionalTasks

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org