Added src build target.

This commit is contained in:
Erik C. Thauvin 2004-02-09 00:51:29 +00:00
parent 191381492e
commit 4b001a9178
5 changed files with 99 additions and 20 deletions

View file

@ -353,7 +353,7 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/com/clevercactus/google/taglibs/SearchResults.java" pinned="false">
<provider selected="true" editor-type-id="text-editor">
<state line="40" column="26" selection-start="1769" selection-end="1769" vertical-scroll-proportion="-0.055555556">
<state line="40" column="26" selection-start="1829" selection-end="1829" vertical-scroll-proportion="0.028619528">
<folding>
<element signature="imports" expanded="true" />
</folding>
@ -386,13 +386,7 @@
</component>
<component name="PackagesPane" />
<component name="ProjectPane">
<expanded_node url="file://$PROJECT_DIR$/tlds" module="GoogleRSS" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src/com" module="GoogleRSS" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src/com/clevercactus/google/taglibs" module="GoogleRSS" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src/com/clevercactus" module="GoogleRSS" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src" module="GoogleRSS" type="directory" />
<expanded_node url="file://$PROJECT_DIR$" module="GoogleRSS" type="directory" />
<expanded_node url="file://$PROJECT_DIR$/src/com/clevercactus/google" module="GoogleRSS" type="directory" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" splitterProportion="0.5">
@ -401,7 +395,7 @@
<showLibraryContents />
<flattenPackages />
<hideEmptyPackages />
<showStructure />
<showStructure ProjectPane="false" />
<autoscrollToSource />
</navigator>
</component>
@ -416,7 +410,6 @@
<component name="RunManager">
<option name="SHOW_SETTINGS_BEFORE_RUNNING" value="true" />
<option name="COMPILE_BEFORE_RUNNING" value="true" />
<option name="USE_LAUNCHER_FOR_RUNNING" value="false" />
<activeType name="WebApp" />
<configuration name="&lt;template&gt;" type="Application" default="true" selected="false">
<option name="MAIN_CLASS_NAME" />
@ -535,12 +528,11 @@
<layout>
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="7" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.28061223" order="0" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.30816326" order="0" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33026114" order="1" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.2489796" order="1" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33024693" order="8" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.4" order="6" />
<window_info id="Aspects" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="3" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.18673469" order="1" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33026114" order="2" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
@ -549,6 +541,7 @@
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="sliding" type="sliding" visible="false" weight="0.4" order="0" />
<window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
<window_info id="Aspects" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="3" />
<window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="3" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="5" />
</layout>
@ -735,7 +728,7 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/com/clevercactus/google/taglibs/SearchResults.java">
<provider selected="true" editor-type-id="text-editor">
<state line="40" column="26" selection-start="1769" selection-end="1769" vertical-scroll-proportion="-0.055555556">
<state line="40" column="26" selection-start="1829" selection-end="1829" vertical-scroll-proportion="0.028619528">
<folding>
<element signature="imports" expanded="true" />
</folding>

View file

@ -0,0 +1,67 @@
Google RSS Tag Library README (BUILD)
=====================================
Overview
========
This README file describes the Google RSS Tag Library source distribution.
The Google RSS Tag Library is an extension to, and thus requires, the
Google Tag Library, which can be found at:
<http://google-taglib.sourceforge.net/>
See the "LICENSE.txt" file for licensing details.
The Google RSS Tag Library uses the Google Web APIs, but is not associated
with or sponsored by Google, Inc.
Google Web APIs
===============
The Google Web APIs Java library is required in order to build the Google
RSS Tag Library. The library's JAR file (googleapi.jar) should be placed
into the lib directory.
http://www.google.com/apis/download.html
Building the Source
===================
The Google RSS Tag Library is intended to be build directly within the
Google Tag Library source tree:
/google-taglib/rss/
The Google RSS Tag Library is built using Ant.
http://ant.apache.org/
To build the JAR, to do the following:
ant
To build the TLD, do the following:
ant tld
To build the release archive, do the following:
ant release
To build the Examples WAR, do the following:
ant examples
To list all available build targets, do the following:
ant -projecthelp
===========================================================================
$Id$

View file

@ -7,8 +7,8 @@ Overview
This README file describes the Google RSS Tag Library distribution.
The Google RSS Tag Library is an extension to, and thus requires,
the Google Tag Library, which can be found at:
The Google RSS Tag Library is an extension to, and thus requires, the
Google Tag Library, which can be found at:
<http://google-taglib.sourceforge.net/>

View file

@ -5,17 +5,19 @@ version=1.0
project.name=google-rss
release.name=${project.name}-taglib-${version}
# Google Tag Library
google.dir=..
google.target=jar
google.jar=../dist/google.jar
google.tld=../dist/google.tld
# Locations
src.dir=src
build.dir=build
dist.dir=dist
lib.dir=../lib
lib.dir=${google.dir}/lib
tlds.dir=tlds
# Google
google.jar=../dist/google.jar
google.tld=../dist/google.tld
# Examples
ex.dir=${project.name}-examples
@ -24,4 +26,5 @@ src.excludes=${lib.dir}/googleapi.jar
# Docs
doc.license=LICENSE.txt
doc.readme=README.txt
doc.readme=README.txt
doc.src=README-BUILD.txt

View file

@ -25,6 +25,7 @@
</path>
<!-- Prepare target -->
<target name="prepare">
<ant dir="${google.dir}" inheritAll="false" inheritRefs="false" target="${google.target}"/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
</target>
@ -96,6 +97,21 @@
<!-- Create the web archive -->
<jar jarfile="${dist.dir}/${ex.dir}-${version}.war" basedir="${build.ex}"/>
</target>
<!-- Src target -->
<target name="src" description="Builds the source archive">
<!-- Create the TAR archive -->
<tar tarfile="${dist.dir}/${release.name}-src.tar.gz" compression="gzip">
<tarfileset dir="${basedir}" prefix="${release.name}">
<include name="${src.dir}/**"/>
<include name="${tlds.dir}/**"/>
<include name="${ex.dir}/**"/>
<include name="${doc.readme}"/>
<include name="${doc.license}"/>
<include name="${doc.src}"/>
<include name="build.*"/>
</tarfileset>
</tar>
</target>
<!-- Clean Build target -->
<target name="clean-build" description="Cleans the build directory">
<delete quiet="true" includeEmptyDirs="true">