tapestry-commits Mailing List for Tapestry: Java Web Components
Brought to you by:
hship
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(101) |
Sep
(105) |
Oct
(55) |
Nov
(128) |
Dec
(125) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(141) |
Feb
(45) |
Mar
(115) |
Apr
(111) |
May
(498) |
Jun
(90) |
Jul
(265) |
Aug
(356) |
Sep
(461) |
Oct
(196) |
Nov
(202) |
Dec
(358) |
| 2003 |
Jan
(198) |
Feb
(67) |
Mar
(81) |
Apr
(45) |
May
(41) |
Jun
(33) |
Jul
(175) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Howard L. S. <hs...@us...> - 2003-07-14 11:20:27
|
Update of /cvsroot/tapestry/TapestryBook
In directory sc8-pr-cvs1:/tmp/cvs-serv7432
Modified Files:
build.xml
Log Message:
Set up Log4J inside Tomcat to remove unwanted logging output.
Index: build.xml
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** build.xml 13 Jul 2003 22:42:15 -0000 1.2
--- build.xml 14 Jul 2003 11:20:19 -0000 1.3
***************
*** 27,30 ****
--- 27,45 ----
<ant dir="hangman2" target="deploy"/>
<ant dir="bannerads" target="deploy"/>
+
+ <!-- Copy the log4j library (from Tapestry's lib/runtime)
+ and a log4j.properties file into Tomcat's shared
+ library. -->
+
+ <property file="${props.file}"/>
+
+ <copy todir="${tomcat.dir}/shared/lib">
+ <fileset dir="${tapestry.dist.dir}/lib/runtime">
+ <include name="*.jar"/>
+ </fileset>
+ </copy>
+
+ <copy file="common/log4j.properties" todir="${tomcat.dir}/shared/classes"/>
+
</target>
|
|
From: Howard L. S. <hs...@us...> - 2003-07-14 11:20:27
|
Update of /cvsroot/tapestry/TapestryBook/common In directory sc8-pr-cvs1:/tmp/cvs-serv7432/common Added Files: log4j.properties Log Message: Set up Log4J inside Tomcat to remove unwanted logging output. |
|
From: Howard L. S. <hs...@us...> - 2003-07-14 11:18:27
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv7099/examples-library/src/java/bannerads/library/impl
Modified Files:
XMLBannerSource.java
Log Message:
Build the path to the banner.xml file properly (it was breaking in Tomcat).
Index: XMLBannerSource.java
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/impl/XMLBannerSource.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** XMLBannerSource.java 13 Jul 2003 22:42:15 -0000 1.1
--- XMLBannerSource.java 14 Jul 2003 11:18:23 -0000 1.2
***************
*** 71,75 ****
cycle.getRequestContext().getServlet().getServletContext();
IResourceLocation location =
! new ContextResourceLocation(servletContext, "WEB-INF/" + _bannersFile);
Banner[] banners = read(location);
--- 71,75 ----
cycle.getRequestContext().getServlet().getServletContext();
IResourceLocation location =
! new ContextResourceLocation(servletContext, "/WEB-INF/" + _bannersFile);
Banner[] banners = read(location);
***************
*** 113,116 ****
--- 113,119 ----
URL fileURL = location.getResourceURL();
+
+ System.out.println("*** fileURL = " + fileURL);
+
List banners = null;
try
|
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:28
|
Update of /cvsroot/tapestry/TapestryBook
In directory sc8-pr-cvs1:/tmp/cvs-serv3466
Modified Files:
build.xml .classpath
Log Message:
Move the examples and bannerads libraries into a new examples-library subproject.
Index: build.xml
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** build.xml 12 Jul 2003 15:48:59 -0000 1.1
--- build.xml 13 Jul 2003 22:42:15 -0000 1.2
***************
*** 5,12 ****
--- 5,20 ----
<target name="clean" description="Deletes all derived files.">
+
+ <ant dir="examples-library" target="clean"/>
<ant dir="examples" target="clean"/>
<ant dir="hangman1" target="clean"/>
<ant dir="hangman2" target="clean"/>
<ant dir="bannerads" target="clean"/>
+
+ <delete>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </delete>
</target>
***************
*** 14,17 ****
--- 22,26 ----
depends="check-properties"
description="Build and deploy all WARs.">
+ <ant dir="examples-library" target="install"/>
<ant dir="examples" target="deploy"/>
<ant dir="hangman1" target="deploy"/>
Index: .classpath
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/.classpath,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** .classpath 12 Jul 2003 15:48:59 -0000 1.11
--- .classpath 13 Jul 2003 22:42:15 -0000 1.12
***************
*** 7,10 ****
--- 7,11 ----
<classpathentry kind="src" path="hangman2/src/java"/>
<classpathentry kind="src" path="bannerads/src/java"/>
+ <classpathentry kind="src" path="examples-library/src/java"/>
<classpathentry kind="output" path="bin"/>
</classpath>
|
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:28
|
Update of /cvsroot/tapestry/TapestryBook/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples
Modified Files:
build.xml
Log Message:
Move the examples and bannerads libraries into a new examples-library subproject.
Index: build.xml
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/build.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** build.xml 13 Jul 2003 02:28:13 -0000 1.7
--- build.xml 13 Jul 2003 22:42:15 -0000 1.8
***************
*** 36,39 ****
--- 36,43 ----
<include name="ext/*.jar"/>
</fileset>
+
+ <fileset dir="../lib">
+ <include name="*.jar"/>
+ </fileset>
<pathelement location="${servlet.jar}"/>
</path>
***************
*** 83,86 ****
--- 87,96 ----
<include name="*.jar"/>
</lib>
+
+ <!-- Pick up the examples library -->
+
+ <lib dir="../lib">
+ <include name="*.jar"/>
+ </lib>
</war>
</target>
|
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:26
|
Update of /cvsroot/tapestry/TapestryBook/lib In directory sc8-pr-cvs1:/tmp/cvs-serv3466/lib Added Files: .cvsignore Log Message: Move the examples and bannerads libraries into a new examples-library subproject. --- NEW FILE: .cvsignore --- *.jar |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:26
|
Update of /cvsroot/tapestry/TapestryBook/bannerads
In directory sc8-pr-cvs1:/tmp/cvs-serv3466/bannerads
Modified Files:
build.xml
Log Message:
Move the examples and bannerads libraries into a new examples-library subproject.
Index: build.xml
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/bannerads/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** build.xml 13 Jul 2003 02:28:13 -0000 1.3
--- build.xml 13 Jul 2003 22:42:15 -0000 1.4
***************
*** 36,39 ****
--- 36,43 ----
<include name="ext/*.jar"/>
</fileset>
+
+ <fileset dir="../lib">
+ <include name="*.jar"/>
+ </fileset>
<pathelement location="${servlet.jar}"/>
</path>
***************
*** 81,84 ****
--- 85,94 ----
<lib dir="${tapestry.dist.dir}/lib/ext">
+ <include name="*.jar"/>
+ </lib>
+
+ <!-- Pick up the examples library -->
+
+ <lib dir="../lib">
<include name="*.jar"/>
</lib>
|
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:26
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples-library/src/java/bannerads/library/impl
Added Files:
Banner.java XMLBannerSource.java
Log Message:
Move the examples and bannerads libraries into a new examples-library subproject.
--- NEW FILE: Banner.java ---
package bannerads.library.impl;
import bannerads.library.IBanner;
public class Banner implements IBanner
{
private String _id;
private String _imageURL;
private int _width;
private int _height;
private String _clickThruURL;
private String _title;
private int _impressions;
private int _clickThrus;
public String getClickThruURL()
{
return _clickThruURL;
}
public int getHeight()
{
return _height;
}
public String getId()
{
return _id;
}
public String getImageURL()
{
return _imageURL;
}
public String getTitle()
{
return _title;
}
public int getWidth()
{
return _width;
}
public void setClickThruURL(String string)
{
_clickThruURL = string;
}
public void setHeight(int height)
{
_height = height;
}
public void setId(String string)
{
_id = string;
}
public void setImageURL(String string)
{
_imageURL = string;
}
public void setTitle(String string)
{
_title = string;
}
public void setWidth(int width)
{
_width = width;
}
public int getClickThrus()
{
return _clickThrus;
}
public int getImpressions()
{
return _impressions;
}
public void incrementClickThrus()
{
_clickThrus++;
}
public void incrementImpressions()
{
_impressions++;
}
}
--- NEW FILE: XMLBannerSource.java ---
package bannerads.library.impl;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import javax.servlet.ServletContext;
import org.apache.commons.digester.Digester;
import org.apache.tapestry.ApplicationRuntimeException;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.IResourceLocation;
import org.apache.tapestry.Tapestry;
import org.apache.tapestry.resource.ContextResourceLocation;
import bannerads.library.IBanner;
import bannerads.library.IBannerSource;
public class XMLBannerSource implements IBannerSource
{
private Random random = new Random();
private String _bannersFile = "banners.xml";
/**
* Map of {@link Banner} keyed on (String) banner id.
*/
private Map _banners;
private List _bannerIds;
public IBanner getRandomBanner()
{
int count = _bannerIds.size();
int index = random.nextInt(count);
String id = (String) _bannerIds.get(index);
return getBanner(id);
}
public IBanner getBanner(String bannerId)
{
return (IBanner) _banners.get(bannerId);
}
public void recordImpression(String bannerId)
{
Banner b = (Banner) getBanner(bannerId);
b.incrementImpressions();
}
public void recordClickthru(String bannerId)
{
Banner b = (Banner) getBanner(bannerId);
b.incrementClickThrus();
}
/**
* Initializes the list of banners from the a file
* stored in WEB-INF.
*/
public synchronized void initialize(IRequestCycle cycle)
{
if (_banners == null)
{
ServletContext servletContext =
cycle.getRequestContext().getServlet().getServletContext();
IResourceLocation location =
new ContextResourceLocation(servletContext, "WEB-INF/" + _bannersFile);
Banner[] banners = read(location);
_banners = new HashMap();
_bannerIds = new ArrayList();
for (int i = 0; i < banners.length; i++)
{
String id = banners[i].getId();
_bannerIds.add(id);
_banners.put(id, banners[i]);
}
}
}
public String getBannersFile()
{
return _bannersFile;
}
public void setBannersFile(String string)
{
_bannersFile = string;
}
public Banner[] read(IResourceLocation location)
{
Digester digester = new Digester();
digester.addObjectCreate("banner-ads", ArrayList.class);
digester.addObjectCreate("banner-ads/banner", Banner.class);
// The attribute names match the property names, so this can do it all.
digester.addSetProperties("banner-ads/banner");
// This adds each banner instance to the list, by
// invoking method add() on the ArrayList.
digester.addSetNext("banner-ads/banner", "add");
URL fileURL = location.getResourceURL();
List banners = null;
try
{
InputStream stream = fileURL.openStream();
banners = (List) digester.parse(stream);
stream.close();
}
catch (Exception ex)
{
throw new ApplicationRuntimeException("Unable to read banner ads file " + location, ex);
}
int count = Tapestry.size(banners);
return (Banner[]) banners.toArray(new Banner[count]);
}
public List getBannerIds()
{
return new ArrayList(_bannerIds);
}
}
|
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:22
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/examples/library In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples-library/src/java/examples/library Added Files: FormError.jwc Examples.library FormError.html form-error.png Log Message: Move the examples and bannerads libraries into a new examples-library subproject. --- NEW FILE: FormError.jwc --- <?xml version="1.0"?> <!-- $Id: FormError.jwc,v 1.1 2003/07/13 22:42:14 hship Exp $ --> <!DOCTYPE component-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> <component-specification allow-body="no" allow-informal-parameters="no"> <parameter name="delegate" direction="in" required="yes" type="org.apache.tapestry.valid.IValidationDelegate"/> <private-asset name="icon" resource-path="form-error.png"/> </component-specification> --- NEW FILE: Examples.library --- <?xml version="1.0"?> <!-- $Id: Examples.library,v 1.1 2003/07/13 22:42:14 hship Exp $ --> <!DOCTYPE library-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> <library-specification/> --- NEW FILE: FormError.html --- <span jwcid="@Conditional" condition="ognl:delegate.hasErrors"> <table style="{ border-style : solid; color : Red; font-weight : bold; background-color : #FFFF40; border-width : 1px; border-color : Black; padding : 2px; }"> <tr valign="top"> <td> <img jwcid="@Image" height="52" alt="[Error]" image="ognl:assets.icon" width="52"/> </td> <td> <span jwcid="@Delegator" delegate="ognl:delegate.firstError">Error Message</span> </td> </tr> </table> </span> --- NEW FILE: form-error.png --- PNG cùwÃRWêÀy¾`®hVÒkÛ¸óZaQM>Q£* Z£Û§¶oðBj5$~G[$[¡ðZÐÞÄÃRvD|E¢Xñêá+ÜKõK©¶H¢B°!Új¯hùêòP)03äq¤¥QiÏôÒR9Ýo®Q&!&ÑQ9Ç×ò£\» R.\ñ ¦Ñ5KäY\1±PÁgT7LTü ØaHQÁ¹Ôs£Ð }þ¸hgu<,ÊYÁe=#Öe¥+ yéNÚêùJ/>KG}Oàs¾eVà°¨}¼TÔ¢òù)(ºP·W õ½%ð^h RÍGG:`µ9Àk¨Õº¼Þ$>#¿ á:TtA& |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:22
|
Update of /cvsroot/tapestry/TapestryBook/bannerads/src/java/bannerads/library/impl In directory sc8-pr-cvs1:/tmp/cvs-serv3466/bannerads/src/java/bannerads/library/impl Removed Files: XMLBannerSource.java Banner.java Log Message: Move the examples and bannerads libraries into a new examples-library subproject. --- XMLBannerSource.java DELETED --- --- Banner.java DELETED --- |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:21
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples-library/src/java/bannerads/library Added Files: BannerAds.library BannerService.java BannerAd.jwc IBanner.java IBannerSource.java Log Message: Move the examples and bannerads libraries into a new examples-library subproject. --- NEW FILE: BannerAds.library --- <?xml version="1.0"?> <!-- $Id: BannerAds.library,v 1.1 2003/07/13 22:42:14 hship Exp $ --> <!DOCTYPE library-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> <library-specification> <service name="bannerads.banner" class="bannerads.library.BannerService"/> </library-specification> --- NEW FILE: BannerService.java --- package bannerads.library; import java.io.IOException; import javax.servlet.ServletException; import org.apache.tapestry.IComponent; import org.apache.tapestry.IRequestCycle; import org.apache.tapestry.RedirectException; import org.apache.tapestry.engine.AbstractService; import org.apache.tapestry.engine.IEngineServiceView; import org.apache.tapestry.engine.ILink; import org.apache.tapestry.request.ResponseOutputStream; public class BannerService extends AbstractService { public static final String SERVICE_NAME = "bannerads.banner"; /** * The lone parameter should be the banner id. */ public ILink getLink(IRequestCycle cycle, IComponent component, Object[] parameters) { return constructLink(cycle, SERVICE_NAME, null, parameters, false); } public void service( IEngineServiceView engine, IRequestCycle cycle, ResponseOutputStream output) throws ServletException, IOException { IBannerSource source = (IBannerSource) engine.getSpecification().getExtension( IBannerSource.BANNER_SOURCE_EXTENSION_NAME, IBannerSource.class); source.initialize(cycle); Object[] parameters = getParameters(cycle); String bannerId = (String) parameters[0]; IBanner banner = source.getBanner(bannerId); source.recordClickthru(bannerId); throw new RedirectException(banner.getClickThruURL()); } public String getName() { return SERVICE_NAME; } } --- NEW FILE: BannerAd.jwc --- <?xml version="1.0"?> <!-- $Id: BannerAd.jwc,v 1.1 2003/07/13 22:42:14 hship Exp $ --> <!DOCTYPE component-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> <component-specification class="bannerads.library.components.BannerAd" allow-body="no" allow-informal-parameters="yes"> <reserved-parameter name="href"/> </component-specification> --- NEW FILE: IBanner.java --- package bannerads.library; public interface IBanner { /** * Returns the unique identifier for this banner ad, used to track * impressions and click-thrus. */ public String getId(); /** * Returns the URL for the banner image. */ public String getImageURL(); /** * Returns the width of the image. */ public int getWidth(); /** * Returns the height of the image. */ public int getHeight(); /** * Returns the click-thru URL for the banner ad. */ public String getClickThruURL(); /** * Returns the title (alt text) for the banner. * */ public String getTitle(); } --- NEW FILE: IBannerSource.java --- package bannerads.library; import java.util.List; import org.apache.tapestry.IRequestCycle; public interface IBannerSource { /** * Name ("<code>bannerads.banner-source</code>") * of an application extension that implements * {@link bannerads.IBannerSource}. */ public static final String BANNER_SOURCE_EXTENSION_NAME = "bannerads.banner-source"; /** * Invoked to ensure the source is initialized. This * must always be invoked before any other methods. * */ public void initialize(IRequestCycle cycle); /** * Gets a random banner instance. */ public IBanner getRandomBanner(); /** * Gets a specific banner instance. */ public IBanner getBanner(String bannerId); /** * Records an impression (that is, notes that a particular * banner was displayed on a page. */ public void recordImpression(String bannerId); /** * Records a clickthru, indicating the user clicked on * the banner ad and was redirected to the banner site. */ public void recordClickthru(String bannerId); /** * Returns the ids of all banners as a List of * String. The List is not sorted, but may * be freely modified by the caller. */ public List getBannerIds(); } |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:21
|
Update of /cvsroot/tapestry/TapestryBook/bannerads/src/java/bannerads/library/components In directory sc8-pr-cvs1:/tmp/cvs-serv3466/bannerads/src/java/bannerads/library/components Removed Files: BannerAd.java Log Message: Move the examples and bannerads libraries into a new examples-library subproject. --- BannerAd.java DELETED --- |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:19
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/components
In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples-library/src/java/bannerads/library/components
Added Files:
BannerAd.java
Log Message:
Move the examples and bannerads libraries into a new examples-library subproject.
--- NEW FILE: BannerAd.java ---
package bannerads.library.components;
import org.apache.tapestry.AbstractComponent;
import org.apache.tapestry.IEngine;
import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.engine.IEngineService;
import org.apache.tapestry.engine.ILink;
import bannerads.library.*;
import bannerads.library.IBanner;
import bannerads.library.IBannerSource;
/**
* Renders a <a> tag around a <img> tag; this consistitues a
* banner impression.
*/
public class BannerAd extends AbstractComponent
{
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
{
if (cycle.isRewinding())
return;
IBanner banner = getRandomBanner(cycle);
IEngineService service = cycle.getEngine().getService(BannerService.SERVICE_NAME);
ILink link = service.getLink(cycle, this, new Object[] { banner.getId()});
writer.begin("a");
writer.attribute("href", link.getURL());
renderInformalParameters(writer, cycle);
writer.beginEmpty("img");
writer.attribute("src", banner.getImageURL());
writer.attribute("width", banner.getWidth());
writer.attribute("height", banner.getHeight());
writer.attribute("alt", banner.getTitle());
writer.attribute("border", 0);
writer.end(); // <a>
}
private IBanner getRandomBanner(IRequestCycle cycle)
{
IEngine engine = cycle.getEngine();
IBannerSource source =
(IBannerSource) engine.getSpecification().getExtension(
IBannerSource.BANNER_SOURCE_EXTENSION_NAME,
IBannerSource.class);
source.initialize(cycle);
IBanner result = source.getRandomBanner();
source.recordImpression(result.getId());
return result;
}
}
|
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:18
|
Update of /cvsroot/tapestry/TapestryBook/examples/src/context/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples/src/context/WEB-INF Modified Files: examples.application Log Message: Move the examples and bannerads libraries into a new examples-library subproject. Index: examples.application =================================================================== RCS file: /cvsroot/tapestry/TapestryBook/examples/src/context/WEB-INF/examples.application,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** examples.application 12 Jul 2003 04:16:44 -0000 1.1 --- examples.application 13 Jul 2003 22:42:15 -0000 1.2 *************** *** 5,13 **** "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> ! <application name="Tapestry Book Examples"> <library id="contrib" specification-path="/org/apache/tapestry/contrib/Contrib.library"/> ! <library id="lib" specification-path="/examples/library/Examples.library"/> </application> --- 5,13 ---- "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> ! <application name="Tapestry In Action Examples"> <library id="contrib" specification-path="/org/apache/tapestry/contrib/Contrib.library"/> ! <library id="lib" specification-path="/examples/library/Examples.library"/> </application> |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:18
|
Update of /cvsroot/tapestry/TapestryBook/examples-library
In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples-library
Added Files:
.cvsignore build.xml
Log Message:
Move the examples and bannerads libraries into a new examples-library subproject.
--- NEW FILE: .cvsignore ---
target
--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<!-- $Id: build.xml,v 1.1 2003/07/13 22:42:15 hship Exp $ -->
<project name="Tapestry In Action -- Library" default="jar">
<!-- Customize this to match the desired name. -->
<property name="project.name" value="examples-library"/>
<!-- Find out where other project's distributions are. -->
<property file="../common/build.properties"/>
<!-- All derived files end up somewhere under target. -->
<property name="target.dir" value="target"/>
<property name="src.dir" value="src/java"/>
<property name="context.dir" value="src/context"/>
<property name="conf.dir" value="src/conf"/>
<property name="classes.dir" value="${target.dir}/classes"/>
<property name="jar.file" value="${target.dir}/${project.name}.jar"/>
<!-- We expect Tomcat to be available. -->
<property name="servlet.jar" value="${tomcat.dir}/common/lib/servlet.jar"/>
<path id="project.class.path">
<fileset dir="${tapestry.dist.dir}/lib">
<!-- The Tapestry JARs -->
<include name="*.jar"/>
<!-- Dependencies of Tapestry. -->
<include name="ext/*.jar"/>
</fileset>
<pathelement location="${servlet.jar}"/>
</path>
<target name="clean" description="Deletes derived files.">
<delete dir="${target.dir}" quiet="true"/>
</target>
<target name="compile" description="Compile Java classes.">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
classpathref="project.class.path"/>
</target>
<target name="jar" depends="compile"
description="Compile all classes and build the JAR.">
<jar destfile="${jar.file}">
<!-- Pick up compiled classes. These go into WEB-INF/classes. -->
<fileset dir="${classes.dir}"/>
<!-- Pick up properties files and such from the Java source directory. -->
<fileset dir="${src.dir}">
<exclude name="**/*.java"/>
<exclude name="**/package.html"/>
</fileset>
</jar>
</target>
<target name="install" depends="jar"
description="Deploy the JAR into lib directory.">
<property name="install.dir" location="../lib"/>
<mkdir dir="${install.dir}"/>
<copy file="${jar.file}" todir="${install.dir}"/>
</target>
</project>
|
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:18
|
Update of /cvsroot/tapestry/TapestryBook/bannerads/src/java/bannerads/library In directory sc8-pr-cvs1:/tmp/cvs-serv3466/bannerads/src/java/bannerads/library Removed Files: BannerAds.library IBannerSource.java BannerAd.jwc IBanner.java BannerService.java Log Message: Move the examples and bannerads libraries into a new examples-library subproject. --- BannerAds.library DELETED --- --- IBannerSource.java DELETED --- --- BannerAd.jwc DELETED --- --- IBanner.java DELETED --- --- BannerService.java DELETED --- |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:18
|
Update of /cvsroot/tapestry/TapestryBook/examples/src/java/examples/library In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples/src/java/examples/library Removed Files: FormError.jwc form-error.png Examples.library FormError.html Log Message: Move the examples and bannerads libraries into a new examples-library subproject. --- FormError.jwc DELETED --- --- form-error.png DELETED --- --- Examples.library DELETED --- --- FormError.html DELETED --- |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:14
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/examples In directory sc8-pr-cvs1:/tmp/cvs-serv3365/examples-library/src/java/examples Log Message: Directory /cvsroot/tapestry/TapestryBook/examples-library/src/java/examples added to the repository |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:14
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/impl In directory sc8-pr-cvs1:/tmp/cvs-serv3365/examples-library/src/java/bannerads/library/impl Log Message: Directory /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/impl added to the repository |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:13
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/components In directory sc8-pr-cvs1:/tmp/cvs-serv3365/examples-library/src/java/bannerads/library/components Log Message: Directory /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/components added to the repository |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:13
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src In directory sc8-pr-cvs1:/tmp/cvs-serv3365/examples-library/src Log Message: Directory /cvsroot/tapestry/TapestryBook/examples-library/src added to the repository |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:13
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/examples/library In directory sc8-pr-cvs1:/tmp/cvs-serv3365/examples-library/src/java/examples/library Log Message: Directory /cvsroot/tapestry/TapestryBook/examples-library/src/java/examples/library added to the repository |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:13
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads In directory sc8-pr-cvs1:/tmp/cvs-serv3365/examples-library/src/java/bannerads Log Message: Directory /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads added to the repository |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:12
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library In directory sc8-pr-cvs1:/tmp/cvs-serv3365/examples-library/src/java/bannerads/library Log Message: Directory /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library added to the repository |
|
From: Howard L. S. <hs...@us...> - 2003-07-13 22:42:12
|
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java In directory sc8-pr-cvs1:/tmp/cvs-serv3365/examples-library/src/java Log Message: Directory /cvsroot/tapestry/TapestryBook/examples-library/src/java added to the repository |