debian/0000755000000000000000000000000011761222422007165 5ustar debian/build.properties0000644000000000000000000000005511761222404012402 0ustar debian/repack.local0000644000000000000000000000000711761222404011443 0ustar rm lib debian/README.source0000644000000000000000000000036411761222404011347 0ustar 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/watch0000644000000000000000000000016311761222404010216 0ustar version=3 opts="dversionmangle=s/\+dfsg//" \ http://sf.net/jpf/jpf-src-([\d.]+)\.zip debian sh debian/repack.stub debian/rules0000755000000000000000000000140211761222404010242 0ustar #!/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/control0000644000000000000000000000251511761222404010573 0ustar 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.stub0000755000000000000000000000325111761222404011335 0ustar #!/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/copyright0000644000000000000000000000214011761222404011115 0ustar 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/compat0000644000000000000000000000000211761222404010363 0ustar 5 debian/source/0000755000000000000000000000000011761222404010465 5ustar debian/source/format0000644000000000000000000000001411761222404011673 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000235511761222404011044 0ustar 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/0000755000000000000000000000000011761222404010614 5ustar debian/patches/jxp_161.patch0000644000000000000000000001350611761222404013032 0ustar 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 Description: use Debian libraries --- a/build.xml +++ b/build.xml @@ -34,8 +34,11 @@ - - + + + + + debian/patches/compliance.patch0000644000000000000000000000164611761222404013756 0ustar Author: gregor herrmann Description: "Compliance level '1.4' is incompatible with target level '1.5'. A compliance level '1.5' or better is required" --- libjpf-java-1.5.1.orig/build.xml +++ libjpf-java-1.5.1/build.xml @@ -75,6 +75,7 @@ classpathref="classpath" excludes="" target="${compile.target-vm}" + source="${compile.target-vm}" debug="${compile.debug}" optimize="${compile.optimize}" deprecation="true"/> @@ -85,6 +86,7 @@ classpathref="classpath" excludes="" target="${compile.target-vm}" + source="${compile.target-vm}" debug="${compile.debug}" optimize="${compile.optimize}" deprecation="true"/> @@ -95,6 +97,7 @@ classpathref="classpath" excludes="" target="${compile.target-vm}" + source="${compile.target-vm}" debug="${compile.debug}" optimize="${compile.optimize}" deprecation="true"/> debian/libjpf-java.docs0000644000000000000000000000003211761222404012217 0ustar build/docs/api README.txt