Skip to content

Commit ea6a2e0

Browse files
committed
First sucessfully running version!
1 parent 6144c6f commit ea6a2e0

File tree

1 file changed

+32
-15
lines changed

1 file changed

+32
-15
lines changed

readme.mkd

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,19 @@ We will be using a [Vagrant][] managed VirtualBox install as a base system.
3131

3232
config.vm.box = "precise32"
3333

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:
3540

3641
vagrant up
3742

3843
Your Ubuntu virtual machine should now be up and running. Confirm by running:
3944

4045
vagrant ssh
4146

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-
5447
## Installing CSS Validator
5548

5649
### 1. Installing CSS Validator dependencies
@@ -94,7 +87,7 @@ container.
9487
sudo apt-get install tomcat7
9588

9689
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`:
9891

9992
<property name="servlet.lib" value="/usr/share/java/servlet-2.3.jar"/>
10093

@@ -104,10 +97,33 @@ container.
10497

10598
### 4. Build CSS Validator
10699

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+
107114
To build the CSS Validator WAR file, run:
108115

109116
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.
111127

112128
## References
113129

@@ -127,4 +143,5 @@ Need to site-wide validate your site? Like beautiful reports? Try
127143
[vagrant]: http://vagrantup.com/
128144
[vagrantdl]: http://downloads.vagrantup.com/tags/v1.0.5
129145
[official]: http://jigsaw.w3.org/css-validator/DOWNLOAD.html
146+
[localhost8080]: http://localhost:8080/css-validator
130147
[markupvalidator]: http://markupvalidator.com

0 commit comments

Comments
 (0)