Lines Matching +full:- +full:out
7 @echo " help - Displays this message."
8 @echo " ----------- QUICK"
9 @echo " clean - Delete all built files."
10 @echo " default - Build documentation&classes, and run checks."
11 @echo " The output will be available under out/."
12 @echo " ----------- DIAGNOSTIC"
13 @echo " classes - Put Java .class files under out/."
14 @echo " tests - Compile tests."
15 @echo " runtests - Runs tests. Some require a network connection."
16 @echo " coverage - Runs tests and generates a code coverage report."
17 @echo " findbugs - Runs a code quality tool. Slow."
18 @echo " benchmark - Times the sanitizer against a tree builder."
19 @echo " profile - Profiles the benchmark."
20 @echo " ----------- ARTIFACTS"
21 @echo " distrib - Build everything and package it into JARs."
23 @echo " release - Additionally, cut a new Maven version."
25 @echo " directories of trunk checked out."
26 @echo " download - Bundle docs, externally required jars, and"
37 CLASSPATH=lib/guava-libraries/guava.jar:lib/jsr305/jsr305.jar
38 …$(CLASSPATH):lib/htmlparser-1.3/htmlparser-1.3.jar:lib/junit/junit.jar:lib/commons-codec-1.4/commo…
39 JAVAC_FLAGS=-source 1.5 -target 1.5 -Xlint -encoding UTF-8
41 JASSERTS=-ea
42 # Run tests in the Turkish locale to trigger any extra-case-folding-rule bugs
43 # http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html
44 TURKEYTEST=-Duser.counter=TR -Duser.language-tr
54 out: target
55 mkdir -p out
57 out/classes: out
58 mkdir -p out/classes
60 out/genfiles: out
61 mkdir -p out/genfiles
64 rm -rf out
66 classes: out/classes.tstamp
67 out/classes.tstamp: out/classes src/main/org/owasp/html/*.java
68 javac -g ${JAVAC_FLAGS} -classpath ${CLASSPATH} -d out/classes \
70 touch out/classes.tstamp
72 examples: out/examples.tstamp
73 out/examples.tstamp: out/classes.tstamp src/main/org/owasp/html/examples/*.java
74 javac -g ${JAVAC_FLAGS} -classpath ${CLASSPATH}:out/classes \
75 -d out/classes \
77 touch out/examples.tstamp
80 tests: out/tests.tstamp
81 out/tests.tstamp: out/classes.tstamp out/genfiles.tstamp out/examples.tstamp src/tests/org/owasp/ht…
82 javac -g ${JAVAC_FLAGS} \
83 -classpath out/classes:out/genfiles:${TEST_CLASSPATH} \
84 -d out/classes \
85 $$((echo $^; find out/genfiles -type f) | tr ' ' '\n' | \
87 touch out/tests.tstamp
89 out/genfiles.tstamp: out/genfiles/org/owasp/html/AllExamples.java out/genfiles/org/owasp/html/AllTe…
90 touch out/genfiles.tstamp
91 out/genfiles/org/owasp/html/AllTests.java: src/tests/org/owasp/html/*Test.java
92 mkdir -p "$$(dirname $@)"
99 echo $^ | tr ' ' '\n' | perl -pe \
107 out/genfiles/org/owasp/html/AllExamples.java: src/main/org/owasp/html/examples/*.java
108 mkdir -p "$$(dirname $@)"
112 echo $^ | tr ' ' '\n' | perl -pe \
121 -classpath out/classes:src/tests:${TEST_CLASSPATH} \
125 …-cp tools/emma/lib/emma.jar:lib/guava-libraries/guava.jar:lib/jsr305/jsr305.jar:lib/htmlparser-1.3…
126 -Demma.report.out.file=out/coverage/index.html \
127 -Demma.report.out.encoding=UTF-8 \
129 -r html \
130 -cp out/classes:src/tests:lib/junit/junit.jar \
131 -sp src/main:src/tests:out/genfiles \
132 -f \
133 -ix '-junit.*' \
134 -ix '-org.junit.*' \
135 -ix '-org.hamcrest.*' \
140 findbugs: out/findbugs.txt
142 out/findbugs.txt: out/tests.tstamp
143 find out/classes/org -type d | \
144 xargs tools/findbugs/bin/findbugs -textui -effort:max \
145 -auxclasspath ${TEST_CLASSPATH} > $@
148 benchmark: out/tests.tstamp
149 java -cp ${TEST_CLASSPATH}:out/classes \
150 org.owasp.html.Benchmark benchmark-data/Yahoo\!.html
153 profile: out/java.hprof.txt
154 out/java.hprof.txt: out/tests.tstamp
155 …java -cp ${TEST_CLASSPATH}:out/classes -agentlib:hprof=cpu=times,format=a,file=out/java.hprof.txt,…
158 javadoc: out/javadoc.tstamp
159 out/javadoc.tstamp: src/main/org/owasp/html/*.java src/main/org/owasp/html/examples/*.java
160 mkdir -p out/javadoc
161 javadoc -locale en -d out/javadoc \
162 -notimestamp \
163 -charset UTF-8 \
164 -classpath ${CLASSPATH} \
165 -use -splitIndex \
166 -windowtitle 'OWASP Java HTML Sanitizer' \
167 -doctitle 'OWASP Java HTML Sanitizer' \
168 …-header '<a href="http://code.google.com/p/owasp-java-html-sanitizer" target=_top>code.google.com …
169 -J-Xmx250m -nohelp -sourcetab 8 -docencoding UTF-8 -protected \
170 -encoding UTF-8 -author -version $^ \
171 && touch out/javadoc.tstamp
175 distrib: out/run_me_before_committing_release.sh
176 out/run_me_before_committing_release.sh: clean out/staging.tstamp
177 tools/update_tree_in_svn.py out/staging distrib > $@
179 out/staging.tstamp: out/javadoc.tstamp out/classes.tstamp
180 mkdir -p out/staging
182 rm -rf out/staging/javadoc
183 cp -r out/javadoc out/staging/javadoc
185 for doc_html in $$(find out/staging/javadoc -name \*.html); do \
186 …perl -i -pe 's/<!-- Generated by javadoc .+?-->//; s/<META NAME="date" CONTENT="[^"]*">//' "$$doc_…
189 mkdir -p out/staging/lib
191 cp "$$jar" out/staging/lib/; \
192 cp "$$(dirname $$jar)"/COPYING out/staging/lib/"$$(basename $$jar .jar)"-COPYING; \
195 jar cf out/staging/lib/owasp-java-html-sanitizer.jar -C out/classes org
197 for f in $$(find src/main -name \*.java); do \
198 mkdir -p out/staging/"$$(dirname $$f)"; \
199 cp "$$f" out/staging/"$$f"; \
201 jar cf out/staging/lib/owasp-java-html-sanitizer-sources.jar -C out/staging/src/main org
202 jar cf out/staging/lib/owasp-java-html-sanitizer-javadoc.jar -C out javadoc
203 rm -rf out/staging/src
204 cp COPYING out/staging/lib/owasp-java-html-sanitizer-COPYING
209 release: out/run_me_before_committing_maven.sh
210 out/run_me_before_committing_maven.sh: distrib
214 download: out/owasp-java-html-sanitizer.zip
215 out/zip.tstamp: out/staging.tstamp
216 rm -f out/zip/owasp-java-html-sanitizer
217 mkdir -p out/zip/owasp-java-html-sanitizer
218 cp -r out/staging/lib out/staging/javadoc \
219 out/zip/owasp-java-html-sanitizer/
221 out/owasp-java-html-sanitizer.zip: out/zip.tstamp
222 jar cMf out/owasp-java-html-sanitizer.zip \
223 -C out/zip owasp-java-html-sanitizer