[Httpunit-commit] CVS: httpunit build.xml,1.65,1.66 site.css,1.1,1.2 index.html,1.24,NONE project.xm
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-05-18 05:20:51
|
Update of /cvsroot/httpunit/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv25966
Modified Files:
build.xml site.css
Removed Files:
index.html project.xml
Log Message:
publish new website design
Index: build.xml
===================================================================
RCS file: /cvsroot/httpunit/httpunit/build.xml,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- build.xml 9 Apr 2003 16:11:23 -0000 1.65
+++ build.xml 18 May 2003 05:20:45 -0000 1.66
@@ -14,6 +14,7 @@
<property name="src.dir" value="src" />
<property name="tstsrc.dir" value="test" />
<property name="examples.dir" value="examples" />
+ <property name="website.dir" value="site" />
<property name="lib.dir" value="lib" />
<property name="jars.dir" value="jars" />
@@ -21,6 +22,7 @@
<property name="build.dir" value="build" />
<property name="build.classes" value="${build.dir}/classes" />
<property name="test.classes" value="${build.dir}/testclasses" />
+ <property name="website.classes" value="${build.dir}/siteclasses" />
<property name="example.classes" value="${build.dir}/examples" />
<property name="javadoc.dir" value="${docs.dir}/api" />
@@ -192,7 +194,7 @@
<javadoc packagenames="${packages}" sourcepath="${basedir}/${src.dir}"
destdir="${javadoc.dir}" author="true" version="true"
windowtitle="${Name} ${version} API" doctitle="${Name}"
- footer="Copyright &copy; 2000-2003 Russell Gold. See <a href="http://www.httpunit.org/doc/license.html">license agreement</A> for rights granted." >
+ footer="Copyright &copy; 2000-2003 Russell Gold. See <a target="_top" href="../license.html">license agreement</A> for rights granted." >
<classpath refid="base.classpath"/>
</javadoc>
</target>
@@ -225,6 +227,8 @@
<include name="build.xml" />
<include name="readme.txt" />
<include name="index.html" />
+ <include name="site.css" />
+ <include name="favicon.ico" />
<include name="src/**" />
<include name="test/**" />
<include name="examples/**" />
@@ -254,11 +258,37 @@
<target name="publish" depends="dist-zip">
<mkdir dir="${web.dir}" />
<copy todir="${web.dir}" >
- <fileset dir="." includes="*.zip,index.html,doc/**"/>
+ <fileset dir="." includes="site.css,favicon.ico,index.html,doc/**"/>
</copy>
- <replace file="${web.dir}/index.html" token="var:dist>" value="var:dist " />
- <replace file="${web.dir}/index.html" token="var:publish " value="var:publish>" />
- <replace file="${web.dir}/index.html" token="<version>" value="${version}" />
+ <antcall target="update-website" />
+</target>
+
+
+<!-- =================================================================== -->
+<!-- Compiles the website generator -->
+<!-- =================================================================== -->
+<target name="compile-site">
+ <mkdir dir="${website.classes}" />
+ <javac srcdir="${website.dir}" destdir="${website.classes}"
+ debug="${debug}" deprecation="${deprecation}" optimize="${optimize}">
+ <classpath>
+ <path refid="base.classpath" />
+ </classpath>
+ </javac>
+</target>
+
+
+<!-- =================================================================== -->
+<!-- Updates the web site -->
+<!-- =================================================================== -->
+<target name="update-website" depends="compile-site">
+ <java classname="com.meterware.httpunit.site.WebSite" fork="yes" >
+ <classpath>
+ <path refid="base.classpath" />
+ <pathelement location="${website.classes}" />
+ </classpath>
+ <arg path="${web.dir}"/>
+ </java>
</target>
Index: site.css
===================================================================
RCS file: /cvsroot/httpunit/httpunit/site.css,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- site.css 1 Apr 2003 16:18:27 -0000 1.1
+++ site.css 18 May 2003 05:20:45 -0000 1.2
@@ -1,19 +1,73 @@
-FORM.sample { margin-left: 2%; margin-right: 2%;
+/* based on a style sheet from www.bluerobot.com/web/layouts */
+
+
+body {
+ background-color:white;
+ }
+h1 {
+ margin:5px 0px 5px 0px;
+ padding:0px;
+ font-size:28px;
+ line-height:28px;
+ font-weight:900;
+ }
+h2 {
+ color:white;
+ background-color:#666699;
+ padding:0px 5px;
+ }
+p {
+ margin:0px 0px 16px 0px;
+ padding:0px;
+ }
+pre { font-family: "courier new", courier; font-size: 8pt;
+ margin-left: 2%; margin-right: 2%;
padding-top: .5em; padding-bottom: .5em; padding-right: .5em; padding-left: .5em;
- background-color: #cccccc; border-color: #0000cc; border-width: 2; border-style: solid }
+ border-color: black; border-width: 2; border-style: solid
+ }
-H2 { padding-left: .5em; padding-top: .1em; padding-bottom: .1 em; margin-bottom: 1em;
- color: white; background-color: #666699; border-width: 2; border-style: solid; border-color: #330066 }
-P.main { padding-left: 3em }
+#Content>p {margin:0px;}
+#Content>p+p {text-indent:30px;}
-SPAN.code { font-family: courier, monospaced, sans-serif }
+#Content {
+ margin:0px 50px 50px 170px;
+ padding:10px;
+ }
-PRE { font-family: "courier new", courier; font-size: 8pt;
- margin-left: 2%; margin-right: 2%;
- padding-top: .5em; padding-bottom: .5em; padding-right: .5em; padding-left: .5em;
- border-color: black; border-width: 2; border-style: solid }
+P.story-name { margin-left: 3em; margin-bottom: 0; font-weight: bold }
+P.story-contents { margin-left: 3em; margin-top: 0 }
+P.sourceforge { text-align: right; margin-top: -2em }
+td.news { border-color: white; background-color: #ccc; padding:0px 2px 2px 2px }
+dt { font-size:120%; font-weight: bold; margin-top: 1em }
+dd { margin-top: 0; margin-left: 0 }
+td.summaries { padding: 2px 2px 2px 2px }
+
+#Menu {
+ position:absolute;
+ top:120px;
+ left:10px;
+ width:172px;
+ padding:10px;
+ font-size:11px;
+ font-family:verdana, arial, helvetica, sans-serif;
+ background-color:#ccc;
+ line-height:17px;
+/* Again, the ugly brilliant hack. */
+ voice-family: "\"}\"";
+ voice-family:inherit;
+ width:150px;
+ }
+/* Again, "be nice to Opera 5". */
+body>#Menu {width:150px;}
+
+
+#Menu a {
+ color:#669;
+ text-decoration:none;
+ font-weight:600;
+ }
+#Menu a:hover {background-color:#eee;}
-PRE.code-examples { background-color: #cccccc }
|