debian/ 0000755 0000000 0000000 00000000000 11770116753 007176 5 ustar debian/rules 0000755 0000000 0000000 00000000324 11770107464 010254 0 ustar #!/usr/bin/make -f
# -*- makefile -*-
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/guava.jar
%:
dh $@ --with javahelper
debian/patches/ 0000755 0000000 0000000 00000000000 11767455346 010637 5 ustar debian/patches/remove-nonfree-sablecc 0000644 0000000 0000000 00000002172 11767455346 015105 0 ustar --- a/build.xml
+++ b/build.xml
@@ -17,8 +17,6 @@
-
--- a/src/com/google/clearsilver/jsilver/syntax/SyntaxTreeOptimizer.java
+++ b/src/com/google/clearsilver/jsilver/syntax/SyntaxTreeOptimizer.java
@@ -18,7 +18,6 @@
import com.google.clearsilver.jsilver.syntax.analysis.DepthFirstAdapter;
import com.google.clearsilver.jsilver.syntax.node.AMultipleCommand;
-import com.google.clearsilver.jsilver.syntax.node.AOptimizedMultipleCommand;
/**
* Visitor that can be applied to the AST to optimize it by replacing nodes with more efficient
@@ -35,8 +34,6 @@
// Recurse through child nodes first. Because the optimised node doesn't
// handle replacement, go leaves-first.
super.caseAMultipleCommand(originalNode);
- // Replace this node with the optimized version.
- originalNode.replaceBy(new AOptimizedMultipleCommand(originalNode));
}
}
debian/patches/series 0000644 0000000 0000000 00000000053 11767455346 012052 0 ustar fix-build-lib-paths
remove-nonfree-sablecc
debian/patches/fix-build-lib-paths 0000644 0000000 0000000 00000002507 11767454525 014330 0 ustar Index: jsilver-0.0.r19/build.xml
===================================================================
--- jsilver-0.0.r19.orig/build.xml 2010-08-06 20:33:38.000000000 +0200
+++ jsilver-0.0.r19/build.xml 2011-09-05 10:11:28.854142135 +0200
@@ -5,13 +5,13 @@
-
+
-
+
@@ -33,9 +33,7 @@
>
-
-
-
+
@@ -44,7 +42,6 @@
-
debian/changelog 0000644 0000000 0000000 00000001616 11770116123 011043 0 ustar jsilver (1.0.0.dfsg-1) sid; urgency=low
* Upload to Debian (Closes: #677569)
* Remove unlicenced file AOptimizedMultipleCommand.java from upstream
tarball and add .dfsg to version. Add orig-tar.sh to recreate tarball.
Add patch remove-nonfree-sablecc to build without the file.
* Set maintainer to Eucalyptus packaging team with Alexandre & myself
as uploaders
* Include guava in classpath
* Install examples to docs directory
-- Chris Halls Tue, 19 Jun 2012 16:35:39 +0100
jsilver (1.0.0-0ubuntu2) precise; urgency=low
* Added missing ant build-dep
-- Brian Thomason Thu, 09 Feb 2012 23:00:49 -0500
jsilver (1.0.0-0ubuntu1) precise; urgency=low
[ Brian Thomason ]
* Added debian/orig-tar.sh
[ Alexandre Rossi ]
* Initial release
-- Brian Thomason Thu, 09 Feb 2012 21:46:08 +0000
debian/control 0000644 0000000 0000000 00000003173 11770106152 010575 0 ustar Source: jsilver
Section: java
Priority: extra
Maintainer: Debian Eucalyptus Maintainers
Uploaders: Alexandre Rossi , Chris Halls
Build-Depends: debhelper (>= 7.0.50~), default-jdk, javahelper (>=0.20), ant, sablecc, libguava-java
Standards-Version: 3.9.3
Homepage: http://code.google.com/p/jsilver/
Package: libjsilver-java
Architecture: all
Depends: ${misc:Depends}, ${java:Depends}
Description: Clearsilver templates in pure Java
JSilver is a pure-Java implementation of Clearsilver. Key benefits of JSilver
over Clearsilver include:
.
Performance
- Templates are only parsed when the file changes - not for each request.
- Optionally, templates can be compiled directly to Java bytecode, making
rendering super-fast.
- Once-off template optimization step simplifies template making rendering
even faster.
- Internal optimizations to streamline string manipulation.
.
Avoids the complexities of JNI
- Avoids the risk of native code taking down the JVM.
- Avoids JNI marshalling overhead.
.
Simplifies IDE use (no more forgetting java.library.path).
- Allows for easy extension in Java
- API allows template functions to be defined in Java allowing logic to be
pulled out of templates.
- Custom escaping / text filters can be plugged in.
- Makes plugging in translations much simpler
(e.g. ).
- API designed with testability in mind.
- Custom mechanisms can be plugged in for loading templates and caching.
- Low-level access to template AST for advanced transformations.
debian/source/ 0000755 0000000 0000000 00000000000 11767454525 010506 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 11767454525 011714 0 ustar 3.0 (quilt)
debian/copyright 0000644 0000000 0000000 00000002064 11767454525 011143 0 ustar This work was packaged for Debian by:
Alexandre Rossi in September 2011
It was downloaded from:
svn checkout http://jsilver.googlecode.com/svn/tags/jsilver-1.0.0
Project homepage:
Upstream Authors:
David Beaumont
Ben Dodso
Copyright:
Copyright (C) 2010 Google Inc.
License:
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
See the License for the specific language governing permissions
and limitations under the License.
On Debian systems, the complete text of the Apache 2.0 licence can
be found in `/usr/share/common-licenses/Apache-2.0'.
debian/jlibs 0000644 0000000 0000000 00000000027 11767454525 010233 0 ustar build/dist/jsilver.jar
debian/orig-tar.sh 0000755 0000000 0000000 00000001434 11767455346 011275 0 ustar #!/bin/sh -e
# $1 = --upstream-version, see uscan(1).
TAR=jsilver_$2.dfsg.orig.tar.gz
TMP_DIRECTORY=`mktemp --tmpdir --directory jsilver.XXXXXXXXXX`
DIR=jsilver-$2.dfsg.orig
origDir=`pwd`
# clean up the upstream tarball
svn export http://jsilver.googlecode.com/svn/tags/jsilver-$2/ $TMP_DIRECTORY/$DIR
# remove dirs containing compiled JARs
# also, remove the file sablecc/optimizations/AOptimizedMultipleCommand.java
# which does not have a free header
cd $TMP_DIRECTORY/$DIR && rm -rf lib\
sablecc
cd $TMP_DIRECTORY && tar --create --gzip --file $TAR $DIR
# Move to directory 'tarballs' if available.
if [ -r .svn/deb-layout ]; then
. .svn/deb-layout
fi
mv $TMP_DIRECTORY/$TAR $origDir
echo "moved $TMP_DIRECTORY/$TAR to $origDir"
rm -rf $TMP_DIRECTORY
debian/compat 0000644 0000000 0000000 00000000002 11767454525 010404 0 ustar 7
debian/examples 0000644 0000000 0000000 00000000056 11770106770 010736 0 ustar src/com/google/clearsilver/jsilver/examples/*