debian/ 0000755 0000000 0000000 00000000000 11761222422 007165 5 ustar debian/build.properties 0000644 0000000 0000000 00000000055 11761222404 012402 0 ustar
debian/repack.local 0000644 0000000 0000000 00000000007 11761222404 011443 0 ustar rm lib
debian/README.source 0000644 0000000 0000000 00000000364 11761222404 011347 0 ustar This package uses quilt to manage all modifications to the upstream
source. Changes are stored in the source package as diffs in
debian/patches and applied during the build.
See /usr/share/doc/quilt/README.source for a detailed explanation.
debian/watch 0000644 0000000 0000000 00000000163 11761222404 010216 0 ustar version=3
opts="dversionmangle=s/\+dfsg//" \
http://sf.net/jpf/jpf-src-([\d.]+)\.zip debian sh debian/repack.stub
debian/rules 0000755 0000000 0000000 00000001402 11761222404 010242 0 ustar #!/usr/bin/make -f
export JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/commons-logging.jar:/usr/share/java/jxp.jar:/usr/share/java/onemind-commons-java.jar:/usr/share/java/onemind-commons-invoke.jar
%:
dh $@ --with javahelper
get-orig-source:
uscan --repack --verbose --force --rename
clean:
dh clean --with javahelper
mh_clean
override_jh_build:
ant jar docs
override_dh_installchangelogs:
dh_installchangelogs changelog.txt
override_dh_install:
mh_installjar -plibjpf-java -l jpf-pom.xml build/lib/jpf.jar
mh_installpom -plibjpf-java jpf-pom.xml
mh_installjar -plibjpf-java -l jpf-boot-pom.xml build/lib/jpf-boot.jar
mh_installpom -plibjpf-java jpf-boot-pom.xml
dh_install -plibjpf-java build/lib/jpf-tools.jar usr/share/java
debian/control 0000644 0000000 0000000 00000002515 11761222404 010573 0 ustar Source: libjpf-java
Section: java
Priority: extra
Maintainer: Debian Java Maintainers
Uploaders: tony mancill
, gregor herrmann
Build-Depends: debhelper (>= 7.0.50~), ant, javahelper, maven-repo-helper
Build-Depends-Indep: default-jdk, libcommons-logging-java,
libjxp-java, libonemind-commons-java-java, libonemind-commons-invoke-java
Homepage: http://jpf.sourceforge.net/
Standards-Version: 3.9.3
Vcs-Git: git://git.debian.org/git/pkg-java/libjpf-java.git
Vcs-Browser: http://git.debian.org/?p=pkg-java/libjpf-java.git
Package: libjpf-java
Architecture: all
Depends: ${misc:Depends}
Description: Java Plugin Framework: plug-in infrastructure library for Java projects
JPF provides a runtime engine that dynamically discovers and loads
"plug-ins". A plug-in is a structured component that describes itself to JPF
using a "manifest". JPF maintains a registry of available plug-ins and the
functions they provide (via extension points and extensions).
.
One major goal of JPF is that the application (and its end-user) should not
pay any memory or performance penalty for plug-ins that are installed, but
not used. Plug-ins are added to the registry at application start-up or
while the application is running but they are not loaded until they are
called.
debian/repack.stub 0000755 0000000 0000000 00000003251 11761222404 011335 0 ustar #!/bin/sh
: <<=cut
=pod
=head1 NAME
repack.stub - script to repack upstream tarballs from uscan
=head1 INSTRUCTIONS
put this in debian/repack.stub and add "debian sh debian/repack.stub" to
the end of the line in debian/watch. you will also need to add a version
mangle to debian/watch.
then create a debian/repack.local. this is a shell script that is
sources under "set -e", so be careful to check returns codes.
=head1 FUNCTIONS
=over 4
=item rm
rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1
=item mv
mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1
=item requires_version
requires_version is there for future usage for requiring certain versions of the script
=back
=head1 VARIABLES
=over 4
=item SUFFIX
defaults to +dfsg
what to append to the upstream version
=item RM_OPTS
defaults to -vrf
options to pass to rm
=item MANIFEST
defaults to 0, set to 1 to turn on.
this will manipulate MANIFEST files in CPAN tarballs.
=item UP_BASE
this is the directory where the upstream source is.
=back
=cut
if [ -z "$REPACK_SH" ]; then
if [ -f ../../scripts/repack.sh ]; then
REPACK_SH=../../scripts/repack.sh
fi
if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then
REPACK_SH=$(which repack.sh)
fi
fi
if [ ! -f "$REPACK_SH" ]; then
echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable"
echo "You can get it from http://svn.debian.org/viewsvn/pkg-perl/scripts/repack.sh"
exit 1
fi
exec "$REPACK_SH" "$@"
debian/copyright 0000644 0000000 0000000 00000002140 11761222404 011115 0 ustar Format-Specification:
http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
Upstream-Maintainer: Dmitry Olshansky
Upstream-Source: http://jpf.sourceforge.net/
Upstream-Name: JPF
X-Comment: The +dfsg version is created by removing the lib/ directory from
the upstream zip file. This directory contains compiled code without source.
Files: *
Copyright: 2004-2007 Dmitry Olshansky
License: LGPL-2.1+
Files: source-boot/org/java/plugin/boot/SplashWindow.java
Copyright: 2003-2005 Werner Randelshofer
License: PD
This software is in the public domain.
Files: debian/*
Copyright:
2009, gregor herrmann
2009, tony mancill
License: LGPL-2.1+
License: LGPL-2.1+
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
.
On Debian systems, the complete text of the GNU Lesser General
Public License 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
debian/compat 0000644 0000000 0000000 00000000002 11761222404 010363 0 ustar 5
debian/source/ 0000755 0000000 0000000 00000000000 11761222404 010465 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 11761222404 011673 0 ustar 3.0 (quilt)
debian/changelog 0000644 0000000 0000000 00000002355 11761222404 011044 0 ustar libjpf-java (1.5.1+dfsg-4) unstable; urgency=low
[ gregor herrmann ]
* Update Vcs-* headers.
[ tony mancill ]
* Update Maintainer field for Java team maintenance.
* Add gregor to Uploaders.
* Set Standards-Version to 3.9.3 (no changes).
* Drop unneeded dependency on JRE.
-- tony mancill Tue, 29 May 2012 12:32:51 -0700
libjpf-java (1.5.1+dfsg-3) unstable; urgency=low
[ Giovanni Mascellani ]
* Added installation of POM files (closes: #611497).
-- gregor herrmann Sun, 30 Jan 2011 18:00:58 +0100
libjpf-java (1.5.1+dfsg-2) unstable; urgency=low
[ gregor herrmann ]
* debian/control: change build dependency from default-jdk-builddep to
default-jdk.
[ tony mancill ]
* Bump Standards-Version to 3.9.1: no changes.
* Add ${misc:Depends} to debian/control.
* Convert to source format 3.0 (quilt) and javahelper.
* Add debian/libjpf-java.docs file to include upstream README.txt
* debhelper dependency is now version 7.0.50 or later.
-- tony mancill Thu, 05 Aug 2010 08:56:49 -0700
libjpf-java (1.5.1+dfsg-1) unstable; urgency=low
* Initial release (closes: #519124).
-- gregor herrmann Wed, 02 Sep 2009 22:31:56 +0200
debian/patches/ 0000755 0000000 0000000 00000000000 11761222404 010614 5 ustar debian/patches/jxp_161.patch 0000644 0000000 0000000 00000013506 11761222404 013032 0 ustar Author: tony mancill
Description: make jpf work with newer jxp
--- a/source-tools/org/java/plugin/tools/docgen/ClassPathPageSource.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package org.java.plugin.tools.docgen;
-
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-import org.onemind.commons.java.util.FileUtils;
-import org.onemind.jxp.CachedJxpPage;
-import org.onemind.jxp.CachingPageSource;
-import org.onemind.jxp.JxpPage;
-import org.onemind.jxp.JxpPageNotFoundException;
-import org.onemind.jxp.JxpPageParseException;
-import org.onemind.jxp.parser.AstJxpDocument;
-import org.onemind.jxp.parser.JxpParser;
-import org.onemind.jxp.parser.ParseException;
-
-/**
- * JXP page source configured to load templates from the classpath.
- * @version $Id$
- */
-final class ClassPathPageSource extends CachingPageSource {
- private final String base;
- private final ClassLoader cl;
- private final String encoding;
-
- ClassPathPageSource(final String aBase, final String anEncoding) {
- super();
- base = aBase;
- encoding = anEncoding;
- cl = getClass().getClassLoader();
- }
-
- /**
- * @see org.onemind.jxp.CachingPageSource#loadJxpPage(java.lang.String)
- */
- @Override
- protected CachedJxpPage loadJxpPage(final String id)
- throws JxpPageNotFoundException {
- if (!hasJxpPage(id)) {
- throw new JxpPageNotFoundException("page " + id + " not found"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return new CachedJxpPage(this, id);
- }
-
- /**
- * @see org.onemind.jxp.CachingPageSource#parseJxpDocument(
- * org.onemind.jxp.JxpPage)
- */
- @Override
- protected AstJxpDocument parseJxpDocument(final JxpPage page)
- throws JxpPageParseException {
- try {
- JxpParser parser;
- if (encoding == null) {
- parser = new JxpParser(cl.getResourceAsStream(
- getStreamName(page.getName())));
- } else {
- parser = new JxpParser(new InputStreamReader(
- cl.getResourceAsStream(getStreamName(page.getName())),
- encoding));
- }
- return parser.JxpDocument();
- } catch (IOException ioe) {
- throw new JxpPageParseException("problem parsing page " //$NON-NLS-1$
- + page.getName() + ": " + ioe.getMessage(), ioe); //$NON-NLS-1$
- } catch (ParseException pe) {
- throw new JxpPageParseException("problem parsing page " //$NON-NLS-1$
- + page.getName() + ": " + pe.getMessage(), pe); //$NON-NLS-1$
- }
- }
-
- /**
- * @see org.onemind.jxp.JxpPageSource#hasJxpPage(java.lang.String)
- */
- @Override
- public boolean hasJxpPage(final String id) {
- if (isJxpPageCached(id)) {
- return true;
- }
- return cl.getResource(getStreamName(id)) != null;
- }
-
- private String getStreamName(final String pageName) {
- return FileUtils.concatFilePath(base, pageName);
- }
-}
--- a/source-tools/org/java/plugin/tools/docgen/DocGenerator.java
+++ b/source-tools/org/java/plugin/tools/docgen/DocGenerator.java
@@ -45,8 +45,11 @@
import org.java.plugin.registry.PluginRegistry;
import org.java.plugin.util.IoUtil;
import org.onemind.jxp.FilePageSource;
-import org.onemind.jxp.JxpProcessingContext;
+import org.onemind.jxp.CachingPageSource;
+import org.onemind.jxp.JxpPageSource;
import org.onemind.jxp.JxpProcessor;
+import org.onemind.jxp.JxpContext;
+import org.onemind.jxp.ResourceStreamPageSource;
/**
* Tool class to generate documentation for plug-ins using