You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2003/10/20 10:54:17 UTC
cvs commit: xml-forrest/src/resources/forrestbar/content/forrestbar/images apache-down.png apache.png code-down.png code.png download-down.png download.png faq-down.png faq.png forrest-down.png forrest.png gump-down.png gump.png news-down.png news.png projects-down.png projects.png search-down.png search.png tools-down.png tools.png
nicolaken 2003/10/20 01:54:17
Modified: . build.xml
Added: src/forrestbar build.xml
src/forrestbar/xpi install.js
src/forrestbar/xpi/content/forrestbar contents.rdf
forrestbar.css forrestbarOverlay.js
forrestbarOverlay.xul
src/forrestbar/xpi/content/forrestbar/images apache-down.png
apache.png code-down.png code.png download-down.png
download.png faq-down.png faq.png forrest-down.png
forrest.png gump-down.png gump.png news-down.png
news.png projects-down.png projects.png
search-down.png search.png tools-down.png tools.png
Removed: src/resources/forrestbar install.js
src/resources/forrestbar/content/forrestbar contents.rdf
forrestbar.css forrestbarOverlay.js
forrestbarOverlay.xul
src/resources/forrestbar/content/forrestbar/images
apache-down.png apache.png code-down.png code.png
download-down.png download.png faq-down.png faq.png
forrest-down.png forrest.png gump-down.png gump.png
news-down.png news.png projects-down.png
projects.png search-down.png search.png
tools-down.png tools.png
Log:
Move forrestbar, making an imported buildfile for it, and addin an xpi/ dir.
src/resources/forrestbar -> src/forrestbar(/xpi)
Revision Changes Path
1.81 +1 -32 xml-forrest/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-forrest/build.xml,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- build.xml 18 Oct 2003 10:59:52 -0000 1.80
+++ build.xml 20 Oct 2003 08:54:16 -0000 1.81
@@ -16,6 +16,7 @@
Run the build script: build.bat or build.sh
</description>
+ <import file="src/forrestbar/build.xml"/>
<target name="init">
<tstamp>
@@ -455,38 +456,6 @@
<property name="forrest.home" value="${dist-shbat.dir}" />
<ant antfile="${forrest.home}/forrest.antproxy.xml" target="validate"/>
</target>
-
- <!-- =================================================================== -->
- <!-- ForrestBar for Mozilla -->
- <!-- =================================================================== -->
- <target name="forrestbar" depends="init">
- <mkdir dir="${build.dir}" />
- <mkdir dir="${build.dir}/work/forrestbar" />
- <mkdir dir="${build.dir}/work/forrestbar-jar" />
- <copy todir="${build.dir}/work/forrestbar-jar" overwrite="true">
- <fileset dir="src/resources/forrestbar"
- includes="content/**/*.xul" />
- <filterset>
- <filter token="EMBEDDED_NAME" value="${forrestbot.links.forrest.local-embedded.name}"/>
- <filter token="EMBEDDED_URL" value="${forrestbot.links.forrest.local-embedded.url}"/>
- <filter token="WEBAPP_NAME" value="${forrestbot.links.forrest.local-webapp.name}"/>
- <filter token="WEBAPP_URL" value="${forrestbot.links.forrest.local-webapp.url}"/>
- </filterset>
- </copy>
- <copy todir="${build.dir}/work/forrestbar-jar" overwrite="true">
- <fileset dir="src/resources/forrestbar"
- excludes="content/**/*.xul" />
- </copy>
- <jar jarfile="${build.dir}/work/forrestbar/forrestbar.jar">
- <fileset dir="${build.dir}/work/forrestbar-jar" includes="content/**/*" />
- </jar>
- <copy file="src/resources/forrestbar/install.js"
- todir="${build.dir}/work/forrestbar" overwrite="true">
- </copy>
- <zip zipfile="${build.dir}/forrestbar.xpi"
- basedir="${build.dir}/work/forrestbar" />
- </target>
-
<!-- ================================== -->
<!-- Test targets -->
1.1 xml-forrest/src/forrestbar/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<project default="forrestbar" basedir="../.." name="forrestbar">
<description>Build script for the forrestbar</description>
<!-- Default init values-->
<target name="init">
<property name="build.dir" location="build"/>
<property name="forrestbot.links.forrest.local-embedded.name" value="forrest"/>
<property name="forrestbot.links.forrest.local-embedded.url" value="http://xml.apache.org/forrest/"/>
<property name="forrestbot.links.forrest.local-webapp.name" value="forrest"/>
<property name="forrestbot.links.forrest.local-webapp.url" value="http://xml.apache.org/forrest/"/>
</target>
<!-- =================================================================== -->
<!-- ForrestBar for Mozilla and MozillaFirebird -->
<!-- =================================================================== -->
<target name="forrestbar" depends="init">
<property name="xpi.dir" location="src/forrestbar/xpi"/>
<mkdir dir="${build.dir}" />
<mkdir dir="${build.dir}/work/forrestbar" />
<mkdir dir="${build.dir}/work/forrestbar-jar" />
<copy todir="${build.dir}/work/forrestbar-jar" overwrite="true">
<fileset dir="${xpi.dir}"
includes="content/**/*.xul" />
<filterset>
<filter token="EMBEDDED_NAME" value="${forrestbot.links.forrest.local-embedded.name}"/>
<filter token="EMBEDDED_URL" value="${forrestbot.links.forrest.local-embedded.url}"/>
<filter token="WEBAPP_NAME" value="${forrestbot.links.forrest.local-webapp.name}"/>
<filter token="WEBAPP_URL" value="${forrestbot.links.forrest.local-webapp.url}"/>
</filterset>
</copy>
<copy todir="${build.dir}/work/forrestbar-jar" overwrite="true">
<fileset dir="${xpi.dir}"
excludes="content/**/*.xul" />
</copy>
<jar jarfile="${build.dir}/work/forrestbar/forrestbar.jar">
<fileset dir="${build.dir}/work/forrestbar-jar" includes="content/**/*" />
</jar>
<copy file="${xpi.dir}/install.js"
todir="${build.dir}/work/forrestbar" overwrite="true">
</copy>
<zip zipfile="${build.dir}/forrestbar.xpi"
basedir="${build.dir}/work/forrestbar" />
</target>
</project>
1.1 xml-forrest/src/forrestbar/xpi/install.js
Index: install.js
===================================================================
var err = initInstall("ForrestBar", "forrestbar", "");
//alert("initInstall");
addFile("forrestbar", "forrestbar.jar", getFolder("Chrome"),"");
//alert("addFile");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","forrestbar.jar"), "content/forrestbar/");
//alert("registerChrome");
if (err==SUCCESS){
//alert("SUCCESS");
performInstall();
} else {
cancelInstall(err);
}
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/contents.rdf
Index: contents.rdf
===================================================================
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
<RDF:Seq about="urn:mozilla:package:root">
<RDF:li resource="urn:mozilla:package:forrestbar" />
</RDF:Seq>
<RDF:Description about="urn:mozilla:package:forrestbar"
chrome:displayName="Forrest Toolbar"
chrome:author="Apache Forrest Project - xml.apache.org/forrest"
chrome:name="forrestbar"
chrome:extension="true"
chrome:description="This is a toolbar for Apache Projects and Apache Forrest.">
</RDF:Description>
<RDF:Seq about="urn:mozilla:overlays">
<RDF:li resource="chrome://navigator/content/navigator.xul" />
<RDF:li resource="chrome://browser/content/browser.xul"/>
</RDF:Seq>
<RDF:Seq about="chrome://navigator/content/navigator.xul">
<RDF:li>chrome://forrestbar/content/forrestbarOverlay.xul</RDF:li>
</RDF:Seq>
<RDF:Seq about="chrome://browser/content/browser.xul">
<RDF:li>chrome://forrestbar/content/forrestbarOverlay.xul</RDF:li>
</RDF:Seq>
</RDF:RDF>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/forrestbar.css
Index: forrestbar.css
===================================================================
*.forrestbar {
font-family: tahoma,verdana;
font-size: 11px;
padding: 1px 0px 1px 6px;
margin: 0px 1px 0px 1px;
}
textbox.forrestbar {
font-size: 11px;
padding: 2px;
}
image.forrestbar {
border: 0px;
margin: 0px 0px 0px 0px;
}
image#forrestbar-logo {
list-style-image: url("images/apache-down.png");
}
#forrestbar-community:hover {
list-style-image: url("images/apache-down.png");
}
#forrestbar-community {
list-style-image: url("images/apache.png");
}
#forrestbar-search:hover {
list-style-image: url("images/search-down.png");
}
#forrestbar-search {
list-style-image: url("images/search.png");
}
#forrestbar-news:hover {
list-style-image: url("images/news-down.png");
}
#forrestbar-news {
list-style-image: url("images/news.png");
}
#forrestbar-code:hover {
list-style-image: url("images/code-down.png");
}
#forrestbar-code {
list-style-image: url("images/code.png");
}
#forrestbar-download:hover {
list-style-image: url("images/download-down.png");
}
#forrestbar-download {
list-style-image: url("images/download.png");
}
#forrestbar-tools:hover {
list-style-image: url("images/tools-down.png");
}
#forrestbar-tools {
list-style-image: url("images/tools.png");
}
#forrestbar-asksam:hover {
list-style-image: url("images/faq-down.png");
}
#forrestbar-asksam {
list-style-image: url("images/faq.png");
}
#forrestbar-gump-nightly:hover {
list-style-image: url("images/gump-down.png");
}
#forrestbar-gump-nightly {
list-style-image: url("images/gump.png");
}
#forrestbar-local-forrest:hover {
list-style-image: url("images/forrest-down.png");
}
#forrestbar-local-forrest {
list-style-image: url("images/forrest.png");
}
#forrestbar-projects:hover {
list-style-image: url("images/projects-down.png");
}
#forrestbar-projects {
list-style-image: url("images/projects.png");
}
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/forrestbarOverlay.js
Index: forrestbarOverlay.js
===================================================================
function startforrestbar()
{
//alert("function init");
if(document.getElementById("forrestbar").getAttribute("hidden") == "false")
{
removeEventListener ("load",startforrestbar, true); // Keep the event from firing a hundred more times.
}
}
addEventListener("load", startforrestbar, true); // Run the startup function when the window loads
function navigate(url) {
window._content.document.location.href = url;
}
/**************************/
function search(searchID)
{
var searchItem = document.getElementById(searchID);
navigate('http://www.google.com/search?q=' + searchItem.value);
}
function navProject(searchID) {
var searchItem = document.getElementById(searchID);
navigate(searchItem.selectedItem.value);
}
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/forrestbarOverlay.xul
Index: forrestbarOverlay.xul
===================================================================
<?xml version="1.0"?>
<?xml-stylesheet href="forrestbar.css" type="text/css"?>
<overlay id="forrestbarOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="text/javascript" src="forrestbarOverlay.js"/>
<menupopup id="view_toolbars_popup">
<menuitem id="viewforrestbar" position="4" checked="true" class="menuitem-iconic" type="checkbox" label="Forrest Toolbar" oncommand="goToggleToolbar('forrestbar','viewforrestbar');startforrestbar();"/>
</menupopup>
<toolbox id="navigator-toolbox">
<toolbar id="forrestbar" persist="hidden" hidden="false" grippytooltiptext="Forrestbar">
<!-- <image class="forrestbar" id="forrestbar-logo"/> -->
<toolbarbutton class="forrestbar" label="Community" type="menu" id="forrestbar-community" hidden="false">
<menupopup>
<menuitem label="Who we are" onclick="navigate('http://www.apache.org/foundation/conferences.html');" />
<menuitem label="map: At a glance" onclick="navigate('http://cvs.apache.org/~sgala/map.html');" />
<menuitem label="map: Zoom on us" onclick="navigate('http://cvs.apache.org/~dirkx/sgala.html');" />
<menuitem label="map: Day & Night" onclick="navigate('http://cvs.apache.org/~sgala/nightmap.html');" />
<menuseparator/>
<menuitem label="Community discussions" onclick="navigate('http://nagoya.apache.org/eyebrowse/BrowseList?listName=community@apache.org');" />
<menuseparator/>
<menuitem label="Management" onclick="navigate('http://www.apache.org/foundation/roles.html');" />
<menuitem label="Mailing lists" onclick="navigate('http://www.apache.org/foundation/mailinglists.html');" />
</menupopup>
</toolbarbutton>
<toolbarbutton class="forrestbar" label="Projects" type="menu" id="forrestbar-projects" hidden="false">
<menupopup>
<menuitem label="Conferences" onclick="navigate('http://www.apache.org/foundation/conferences.html');" />
<menuitem label="Foundation" onclick="navigate('http://www.apache.org/foundation/');" />
<menuitem label="Incubator" onclick="navigate('http://incubator.apache.org/');" />
<menuseparator/>
<menuitem label="Apache" onclick="navigate('http://www.apache.org/');" />
<menuitem label="HTTP Server " onclick="navigate('http://httpd.apache.org/');" />
<menuitem label="APR" onclick="navigate('http://apr.apache.org/');" />
<menu label="Jakarta">
<menupopup>
<menuitem label="Home" onclick="navigate('http://jakarta.apache.org/');"/>
<menuitem onclick="navigate('http://jakarta.apache.org/alexandria/index.html')" label="Alexandria"/>
<menuitem onclick="navigate('http://jakarta.apache.org/ant/index.html')" label="Ant"/>
<menuitem onclick="navigate('http://jakarta.apache.org/avalon/index.html')" label="Avalon"/>
<menuitem onclick="navigate('http://jakarta.apache.org/bcel/index.html')" label="BCEL"/>
<menuitem onclick="navigate('http://jakarta.apache.org/bsf/index.html')" label="BSF"/>
<menuitem onclick="navigate('http://jakarta.apache.org/cactus/index.html')" label="Cactus"/>
<menuitem onclick="navigate('http://jakarta.apache.org/commons/index.html')" label="Commons"/>
<menuitem onclick="navigate('http://jakarta.apache.org/ecs/index.html')" label="ECS"/>
<menuitem onclick="navigate('http://jakarta.apache.org/james/index.html')" label="James"/>
<menuitem onclick="navigate('http://jakarta.apache.org/jetspeed/index.html')" label="Jetspeed"/>
<menuitem onclick="navigate('http://jakarta.apache.org/jmeter/index.html')" label="JMeter"/>
<menuitem onclick="navigate('http://jakarta.apache.org/log4j/index.html')" label="Log4J"/>
<menuitem onclick="navigate('http://jakarta.apache.org/lucene/index.html')" label="Lucene"/>
<menuitem onclick="navigate('http://jakarta.apache.org/ojb/index.html')" label="OJB"/>
<menuitem onclick="navigate('http://jakarta.apache.org/oro/index.html')" label="ORO"/>
<menuitem onclick="navigate('http://jakarta.apache.org/poi/index.html')" label="POI"/>
<menuitem onclick="navigate('http://jakarta.apache.org/regexp/index.html')" label="Regexp"/>
<menuitem onclick="navigate('http://jakarta.apache.org/slide/index.html')" label="Slide"/>
<menuitem onclick="navigate('http://jakarta.apache.org/struts/index.html')" label="Struts"/>
<menuitem onclick="navigate('http://jakarta.apache.org/taglibs/index.html')" label="Taglibs"/>
<menuitem onclick="navigate('http://jakarta.apache.org/tomcat/index.html')" label="Tomcat"/>
<menuitem onclick="navigate('http://jakarta.apache.org/turbine/index.html')" label="Turbine"/>
<menuitem onclick="navigate('http://jakarta.apache.org/velocity/index.html')" label="Velocity"/>
<menuitem onclick="navigate('http://jakarta.apache.org/watchdog/index.html')" label="Watchdog"/>
</menupopup>
</menu>
<menuitem label="PERL" onclick="navigate('http://perl.apache.org/');" />
<menuitem label="PHP" onclick="navigate('http://php.apache.org/');" />
<menuitem label="TCL" onclick="navigate('http://tcl.apache.org/');" />
<menuitem label="XML" onclick="navigate('http://xml.apache.org/');" />
</menupopup>
</toolbarbutton>
<toolbarbutton class="forrestbar" id="forrestbar-news" label="News" onclick="navigate('http://www.apache.org/foundation/news.html');" hidden="false"/>
<toolbarbutton class="forrestbar" id="forrestbar-download" label="Downloads" onclick="navigate('http://nagoya.apache.org/dist/');" hidden="false"/>
<toolbarbutton class="forrestbar" id="forrestbar-code" label="Code" onclick="navigate('http://cvs.apache.org/viewcvs/');" hidden="false"/>
<toolbarbutton class="forrestbar" label="Tools" id="forrestbar-tools" hidden="false" type="menu">
<menupopup>
<menuitem label="Home" onclick="navigate('http://nagoya.apache.org/');" />
<menuseparator/>
<menuitem label="Bugzilla" onclick="navigate('http://nagoya.apache.org/bugzilla/index.html');" />
<menuitem label="Wiki" onclick="navigate('http://nagoya.apache.org/wiki/apachewiki.cgi');" />
<menuitem label="Mail archive" onclick="navigate('http://nagoya.apache.org/eyebrowse/ViewLists');" />
</menupopup>
</toolbarbutton>
<toolbarbutton class="forrestbar" id="forrestbar-local-forrest" label="Forrest" hidden="false" type="menu">
<menupopup>
<menuitem label="Home" onclick="navigate('http://xml.apache.org/forrest/');" />
<menuseparator />
<menuitem label="@EMBEDDED_NAME@" onclick="navigate('@EMBEDDED_URL@');" hidden="false" />
<menuitem label="@WEBAPP_NAME@" onclick="navigate('@WEBAPP_URL@');" hidden="false" />
<menuitem label="Browse" onclick="navigate('http://127.0.0.1:8888/edit/');" hidden="false" />
<menuseparator />
<menuitem label="Edit Page Content-View" onclick="editPage(window._content.document.location.href+'?cocoon-view=content', window, false);" hidden="false" />
<menuitem label="Edit Page" onclick="editPage(window._content.document.location.href, window, false);" hidden="false" />
<menuitem label="Edit Page OnDisk" onclick="editPage('file:///C:/jbprojects/test/build/webapp/content/xdocs/'+window._content.document.location.pathname, window, false);" hidden="false" />
</menupopup>
</toolbarbutton>
<toolbarbutton class="forrestbar" id="forrestbar-gump-nightly" label="Gump" hidden="false" type="menu">
<menupopup>
<menuitem label="Home" onclick="navigate('http://jakarta.apache.org/gump/');" />
<menuseparator/>
<menuitem label="Javadocs" onclick="navigate('http://nagoya.apache.org/~rubys/gump/javadoc.html');" />
<menuitem label="Binaries" onclick="navigate('http://gump.covalent.net/jars/');" />
<menuseparator/>
<menuitem label="0400 GMT - Rubix" onclick="navigate('http://cvs.apache.org/builds/gump/latest');" />
<menuitem label="1200 GMT - Nagoya" onclick="navigate('http://nagoya.apache.org/~rubys/gump/');" />
<menuitem label="2000 GMT - Covalent" onclick="navigate('http://gump.covalent.net/log/index.html');" />
<menuitem label="Java 1.4" onclick="navigate('http://nagoya.apache.org/~rubys/gump/java14/');" />
</menupopup>
</toolbarbutton>
<toolbarbutton class="forrestbar" label="Ask Sam" type="menu" id="forrestbar-asksam" hidden="false">
<menupopup>
<menuitem label="FAQ" onclick="navigate('http://www.apache.org/foundation/faq.html');" />
<menuitem label="Search" onclick="navigate('http://search.apache.org/');" />
<menuitem label="Apache Developer Resources" onclick="navigate('http://www.apache.org/dev/');" />
<menuseparator/>
<menuitem label="Java 1.4.1 API" onclick="navigate('http://java.sun.com/j2se/1.4.1/docs/api/');" />
<menuitem label="Ant manual" onclick="navigate('http://ant.apache.org/manual/index.html');" />
</menupopup>
</toolbarbutton>
<!-- <text class="forrestbar" value="Search for "/> -->
<textbox class="forrestbar" id="forrestbar-input" onselect="search('forrestbar-input');" hidden="false"/>
<toolbarbutton class="forrestbar" id="forrestbar-search" label="Search" onclick="search('forrestbar-input');" hidden="false"/>
</toolbar>
</toolbox>
</overlay>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/apache-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/apache.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/code-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/code.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/download-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/download.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/faq-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/faq.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/forrest-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/forrest.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/gump-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/gump.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/news-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/news.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/projects-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/projects.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/search-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/search.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/tools-down.png
<<Binary file>>
1.1 xml-forrest/src/forrestbar/xpi/content/forrestbar/images/tools.png
<<Binary file>>