debian/0000755000000000000000000000000011770116753007176 5ustar debian/rules0000755000000000000000000000032411770107464010254 0ustar #!/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/0000755000000000000000000000000011767455346010637 5ustar debian/patches/remove-nonfree-sablecc0000644000000000000000000000217211767455346015105 0ustar --- 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/series0000644000000000000000000000005311767455346012052 0ustar fix-build-lib-paths remove-nonfree-sablecc debian/patches/fix-build-lib-paths0000644000000000000000000000250711767454525014330 0ustar 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/changelog0000644000000000000000000000161611770116123011043 0ustar 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/control0000644000000000000000000000317311770106152010575 0ustar 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/0000755000000000000000000000000011767454525010506 5ustar debian/source/format0000644000000000000000000000001411767454525011714 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000206411767454525011143 0ustar 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/jlibs0000644000000000000000000000002711767454525010233 0ustar build/dist/jsilver.jar debian/orig-tar.sh0000755000000000000000000000143411767455346011275 0ustar #!/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/compat0000644000000000000000000000000211767454525010404 0ustar 7 debian/examples0000644000000000000000000000005611770106770010736 0ustar src/com/google/clearsilver/jsilver/examples/*