Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.1.1
-
Fix Version/s: 3.1.2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Hi, all.
I tried to build jikesrvm-3.1.1.
I failed in build. I think a url of checkstyle-4.3 does not exist.
...
init-checkstyle-properties:fetch:
[mkdir] Created dir: /home/nari/source/jikesrvm/components/checkstyle/4.3
[echo] Downloading (no cache available)
[get] Getting: http://optusnet.dl.sourceforge.net/sourceforge/checkstyle/checkstyle-4.3.tar.gz
[get] To: /home/nari/source/jikesrvm/components/checkstyle/4.3/checkstyle-4.3.tar.gz
[get] Error opening connection java.io.FileNotFoundException: http://optusnet.dl.sourceforge.net/sourceforge/checkstyle/checkstyle-4.3.tar.gz
[get] Error opening connection java.io.FileNotFoundException: http://optusnet.dl.sourceforge.net/sourceforge/checkstyle/checkstyle-4.3.tar.gz
[get] Error opening connection java.io.FileNotFoundException: http://optusnet.dl.sourceforge.net/sourceforge/checkstyle/checkstyle-4.3.tar.gz
[get] Can't get http://optusnet.dl.sourceforge.net/sourceforge/checkstyle/checkstyle-4.3.tar.gz to /home/nari/source/jikesrvm/components/checkstyle/4.3/checkstyle-4.3.tar.gzBUILD FAILED
/home/nari/source/jikesrvm/build.xml:270: The following error occurred while executing this line:
/home/nari/source/jikesrvm/build/components/checkstyle.xml:50: The following error occurred while executing this line:
/home/nari/source/jikesrvm/build/components/base.xml:70: The following error occurred while executing this line:
/home/nari/source/jikesrvm/build/components/base.xml:76: The following error occurred while executing this line:
/home/nari/source/jikesrvm/build/components/checkstyle.xml:40: The following error occurred while executing this line:
/home/nari/source/jikesrvm/build/components/base.xml:110: The following error occurred while executing this line:
/home/nari/source/jikesrvm/build/components/base.xml:118: Can't get http://optusnet.dl.sourceforge.net/sourceforge/checkstyle/checkstyle-4.3.tar.gz to /home/nari/source/jikesrvm/components/checkstyle/4.3/checkstyle-4.3.tar.gz
..
Thanks.
As you suspected, the URL no longer exists.
Checkstyle is only needed for checking source files prior to commiting (see http://jira.codehaus.org/browse/RVM-300 ). Checkstyle 4.3 is more than 3 years old. It is not available on checkstyle.sourceforge.net anymore.
There are 3 possibilities:
a) Disable checkstyle (bad if you want to contribute patches)
b) Use the provided patch to update the checkstyle version (untested)
c) Get checkstyle 4.3 from some other place and update the URL accordingly. I have not tried this.
a) You can comment out the line
<ant antfile="build/components/checkstyle.xml" target="ensure"/>in build.xml in the "check-components-properties" target as a workaround. However, this means that you will not be able to run tests that require checkstyle (e.g. the pre-commit test run). You can create modified test-runs by creating appropriate .properties files in build/test-runs.
b) Use the provided patch to update the checkstyle version to 4.4. The newest version of checkstyle is 5.3 but there were some changes in 5.0 that might break backwards compatibility. I am not familiar with checkstyle and I am not a member of the development team, so I do not know if this breaks something. I can only say that building and running the pre-commit test run succeeds.