@@ -31,26 +31,19 @@ We will be using a [Vagrant][] managed VirtualBox install as a base system.
31
31
32
32
config.vm.box = "precise32"
33
33
34
- 5 . Launch the virtual machine:
34
+ 5 . Uncomment the following line in the generated ` Vagrantfile ` to enable port
35
+ forwarding:
36
+
37
+ config.vm.forward_port 8080, 8080
38
+
39
+ 6 . Launch the virtual machine:
35
40
36
41
vagrant up
37
42
38
43
Your Ubuntu virtual machine should now be up and running. Confirm by running:
39
44
40
45
vagrant ssh
41
46
42
- ### Optional
43
-
44
- If running CSS Validator through a web server (see the [ Optional] ( #optional )
45
- section below), uncomment the following line in the generated ` Vagrantfile ` to
46
- enable port forwarding:
47
-
48
- config.vm.forward_port 80, 8080
49
-
50
- ... then reload the virtual machine with:
51
-
52
- vagrant reload
53
-
54
47
## Installing CSS Validator
55
48
56
49
### 1. Installing CSS Validator dependencies
@@ -94,7 +87,7 @@ container.
94
87
sudo apt-get install tomcat7
95
88
96
89
2 . Configure CSS Validator to use Tomcat by replacing the following line in
97
- ` ~/build/2002/css-validator/build.xml `
90
+ ` ~/build/2002/css-validator/build.xml ` :
98
91
99
92
<property name="servlet.lib" value="/usr/share/java/servlet-2.3.jar"/>
100
93
@@ -104,10 +97,33 @@ container.
104
97
105
98
### 4. Build CSS Validator
106
99
100
+ * Note* : at the time of writing, CSS Validator's build script uses an outdated
101
+ link to a number of dependencies. To fix this, first replace the following
102
+ lines in ` ~/build/2002/css-validator/build.xml ` (first line; before, second
103
+ line; after):
104
+
105
+ <get dest="tmp/commons-lang-2.4-bin.tar.gz" src="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.4-bin.tar.gz" usetimestamp="true"/>
106
+ <get dest="tmp/commons-lang-2.4-bin.tar.gz" src="https://archive.apache.org/dist/commons/lang/binaries/commons-lang-2.4-bin.tar.gz" usetimestamp="true"/>
107
+
108
+ <get dest="tmp/velocity-1.6.1.tar.gz" src="http://www.apache.org/dist/velocity/engine/1.6.1/velocity-1.6.1.tar.gz" usetimestamp="true"/>
109
+ <get dest="tmp/velocity-1.6.1.tar.gz" src="https://archive.apache.org/dist/velocity/engine/1.6.1/velocity-1.6.1.tar.gz" usetimestamp="true"/>
110
+
111
+ <get dest="tmp/Xerces-J-bin.2.9.1.tar.gz" src="http://www.apache.org/dist/xerces/j/Xerces-J-bin.2.9.1.tar.gz" usetimestamp="true"/>
112
+ <get dest="tmp/Xerces-J-bin.2.9.1.tar.gz" src="https://archive.apache.org/dist/xerces/j/Xerces-J-bin.2.9.1.tar.gz" usetimestamp="true"/>
113
+
107
114
To build the CSS Validator WAR file, run:
108
115
109
116
cd ~/build/2002/css-validator
110
- ant
117
+ ant war
118
+
119
+ ### 5. Launch Tomcat
120
+
121
+ Start Tomcat using:
122
+
123
+ sudo service tomcat7 start
124
+
125
+ Validator should now be set up and ready to go. Browse to
126
+ [ http://localhost:8080/css-validator ] [ localhost8080 ] to see it running.
111
127
112
128
## References
113
129
@@ -127,4 +143,5 @@ Need to site-wide validate your site? Like beautiful reports? Try
127
143
[ vagrant ] : http://vagrantup.com/
128
144
[ vagrantdl ] : http://downloads.vagrantup.com/tags/v1.0.5
129
145
[ official ] : http://jigsaw.w3.org/css-validator/DOWNLOAD.html
146
+ [ localhost8080 ] : http://localhost:8080/css-validator
130
147
[ markupvalidator ] : http://markupvalidator.com
0 commit comments