Files
gentoo/dev-java/freemarker/files/freemarker-2.3.13-gentoo.patch
T
Robin H. Johnson 56bd759df1 proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.

This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.

Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
2015-08-08 17:38:18 -07:00

127 lines
5.1 KiB
Diff

diff -Nru freemarker-2.3.13.vanilla/build.xml freemarker-2.3.13/build.xml
--- freemarker-2.3.13.vanilla/build.xml 2008-06-21 00:46:08.000000000 +0200
+++ freemarker-2.3.13/build.xml 2008-06-21 00:46:48.000000000 +0200
@@ -69,21 +69,28 @@
<pathelement path="${lib.log4j}"/>
<pathelement path="${lib.rhino}"/>
<pathelement path="${java.class.path}"/>
+ <fileset dir="lib" includes="*.jar"/>
</path>
<path id="compile.classpath">
<path refid="compile.nojsp.classpath"/>
<pathelement path="${lib.jsp21}"/>
+ <fileset dir="lib" includes="*.jar"/>
+ <fileset dir="lib/jsp-2.1" includes="*.jar"/>
</path>
<path id="compile.jsp1.classpath">
<path refid="compile.nojsp.classpath"/>
<pathelement path="${lib.jsp12}"/>
+ <fileset dir="lib" includes="*.jar"/>
+ <fileset dir="lib/jsp-1.2" includes="*.jar"/>
</path>
<path id="compile.jsp2.classpath">
<path refid="compile.nojsp.classpath"/>
<pathelement path="${lib.jsp20}"/>
+ <fileset dir="lib" includes="*.jar"/>
+ <fileset dir="lib/jsp-2.0" includes="*.jar"/>
</path>
<path id="compile.classpath.testcases">
@@ -92,6 +99,7 @@
<pathelement path="${lib.jdom}"/>
<pathelement path="${lib.servlet}"/>
<pathelement path="${lib.jsp20}"/>
+ <fileset dir="lib" includes="*.jar"/>
</path>
<path id="compile.classpath.javadoc">
@@ -110,12 +118,14 @@
<pathelement path="${src.dir}"/>
<pathelement path="${build.javacc.dir}"/>
<pathelement path="${java.class.path}"/>
+ <fileset dir="lib" includes="*.jar"/>
</path>
<path id="compile.classpath.examples">
<pathelement path="${lib.servlet}"/>
<pathelement path="${lib.dir}/freemarker.jar"/>
<pathelement path="${lib.struts}"/>
+ <fileset dir="lib" includes="*.jar"/>
</path>
<path id="full.classpath">
@@ -131,6 +141,7 @@
<pathelement path="${lib.logkit}"/>
<pathelement path="${lib.log4j}"/>
<pathelement path="${java.class.path}"/>
+ <fileset dir="lib" includes="*.jar"/>
</path>
@@ -180,7 +191,6 @@
<patternset id="freemarker.compile.jdk15">
<include name="freemarker/ext/beans/EnumModels.java"/>
- <include name="freemarker/ext/dom/SunInternalXalanXPathSupport.java"/>
</patternset>
<patternset id="freemarker.compile.xalan">
@@ -311,7 +321,6 @@
<available file="lib/xalan.jar"/>
</and>
</condition>
- <antcall target="fetchlibs"/>
<available
property="log4j.available"
classname="org.apache.log4j.Logger"
diff -Nru freemarker-2.3.13.vanilla/src/freemarker/ext/jsp/FreeMarkerPageContext21.java freemarker-2.3.13/src/freemarker/ext/jsp/FreeMarkerPageContext21.java
--- freemarker-2.3.13.vanilla/src/freemarker/ext/jsp/FreeMarkerPageContext21.java 2008-06-21 00:46:08.000000000 +0200
+++ freemarker-2.3.13/src/freemarker/ext/jsp/FreeMarkerPageContext21.java 2008-06-21 00:46:12.000000000 +0200
@@ -2,11 +2,13 @@
import java.security.AccessController;
import java.security.PrivilegedAction;
+import java.util.Enumeration;
import javax.el.ELContext;
import javax.servlet.jsp.JspApplicationContext;
import javax.servlet.jsp.JspContext;
import javax.servlet.jsp.JspFactory;
+import javax.servlet.jsp.ErrorData;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.el.ELException;
import javax.servlet.jsp.el.ExpressionEvaluator;
@@ -24,6 +26,9 @@
class FreeMarkerPageContext21 extends FreeMarkerPageContext {
private static final Logger logger = Logger.getLogger("freemarker.jsp");
+ public ErrorData getErrorData() { return null; }
+ public Enumeration getAttributeNames() { return getServletContext().getAttributeNames(); }
+
static {
if(JspFactory.getDefaultFactory() == null) {
JspFactory.setDefaultFactory(new FreeMarkerJspFactory21());
diff -Nru freemarker-2.3.13.vanilla/src/freemarker/ext/jython/JythonHashModel.java freemarker-2.3.13/src/freemarker/ext/jython/JythonHashModel.java
--- freemarker-2.3.13.vanilla/src/freemarker/ext/jython/JythonHashModel.java 2008-06-21 00:46:08.000000000 +0200
+++ freemarker-2.3.13/src/freemarker/ext/jython/JythonHashModel.java 2008-06-21 00:46:12.000000000 +0200
@@ -137,7 +137,7 @@
{
throw new TemplateModelException(e);
}
- throw new TemplateModelException("'?keys' is not supported as there is no 'keys' nor 'keySet' attribute on an instance of " + object.__class__.__name__);
+ throw new TemplateModelException("'?keys' is not supported as there is no 'keys' nor 'keySet' attribute on an instance of " + object.getType());
}
/**
@@ -157,6 +157,6 @@
{
throw new TemplateModelException(e);
}
- throw new TemplateModelException("'?values' is not supported as there is no 'values' attribute on an instance of " + object.__class__.__name__);
+ throw new TemplateModelException("'?values' is not supported as there is no 'values' attribute on an instance of " + object.getType());
}
}