[Git][java-team/plexus-interpolation][master] 5 commits: Removed the -java-doc package
Emmanuel Bourg
gitlab at salsa.debian.org
Sun Jul 7 21:58:59 BST 2019
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / plexus-interpolation
Commits:
4ebb7433 by Emmanuel Bourg at 2019-07-07T20:52:08Z
Removed the -java-doc package
- - - - -
b98b80ef by Emmanuel Bourg at 2019-07-07T20:52:36Z
Standards-Version updated to 4.3.0
- - - - -
a4b0498b by Emmanuel Bourg at 2019-07-07T20:55:51Z
New upstream version 1.26
- - - - -
ebb30251 by Emmanuel Bourg at 2019-07-07T20:55:51Z
Update upstream source from tag 'upstream/1.26'
Update to upstream version '1.26'
with Debian dir 145537d311dc8845ba55e2aa459aad661f607a3c
- - - - -
5cd8ccd3 by Emmanuel Bourg at 2019-07-07T20:58:36Z
New upstream release (1.26)
- - - - -
8 changed files:
- .travis.yml
- README.md
- debian/changelog
- debian/control
- − debian/libplexus-interpolation-java-doc.doc-base.api
- − debian/libplexus-interpolation-java-doc.install
- pom.xml
- src/main/java/org/codehaus/plexus/interpolation/StringSearchInterpolator.java
Changes:
=====================================
.travis.yml
=====================================
@@ -2,6 +2,7 @@ language: java
jdk:
- openjdk7
- oraclejdk8
+ - openjdk11
script: "mvn --show-version --errors --batch-mode -Prun-its clean verify"
@@ -13,5 +14,4 @@ branches:
- gh-pages
notifications:
email:
- - olamy at apache.org
- kama at soebes.de
=====================================
README.md
=====================================
@@ -2,13 +2,13 @@ Plexus-Interpolation
===============
[](https://travis-ci.org/codehaus-plexus/plexus-interpolation)
-[](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.codehaus.plexus%22%20a%3A%plexus-interpolation%22)
+[](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.codehaus.plexus%22%20AND%20a%3A%22plexus-interpolation%22)
The current master is now at https://github.com/codehaus-plexus/plexus-interpolation
Components for interpolating `${}` strings and the like.
-For publishing [the site](https://codehaus-plexus.github.io/plexus-io/) do the following:
+For publishing [the site](https://codehaus-plexus.github.io/plexus-interpolation/) do the following:
```
mvn -Preporting verify site-deploy
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+plexus-interpolation (1.26-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release
+ * Removed the -java-doc package
+ * Standards-Version updated to 4.3.0
+
+ -- Emmanuel Bourg <ebourg at apache.org> Sun, 07 Jul 2019 22:58:19 +0200
+
plexus-interpolation (1.25-1) unstable; urgency=medium
* Team upload.
=====================================
debian/control
=====================================
@@ -8,12 +8,10 @@ Uploaders:
Build-Depends:
debhelper (>= 11~),
default-jdk,
- default-jdk-doc,
junit4,
libmaven-bundle-plugin-java,
- libmaven-javadoc-plugin-java,
maven-debian-helper (>= 2.2~)
-Standards-Version: 4.1.5
+Standards-Version: 4.3.0
Vcs-Git: https://salsa.debian.org/java-team/plexus-interpolation.git
Vcs-Browser: https://salsa.debian.org/java-team/plexus-interpolation
Homepage: https://github.com/codehaus-plexus/plexus-interpolation
@@ -22,7 +20,6 @@ Package: libplexus-interpolation-java
Architecture: all
Depends: ${maven:Depends}, ${misc:Depends}
Recommends: ${maven:OptionalDepends}
-Suggests: libplexus-interpolation-java-doc
Description: Plexus Interpolation API
The Plexus project provides a full software stack for creating and executing
software projects. Based on the Plexus container, the applications can
@@ -45,34 +42,3 @@ Description: Plexus Interpolation API
Plexus interpolator is focused on providing a more modular, flexible
interpolation framework for the expression language style commonly seen in
Maven, Plexus, and other related projects.
-
-Package: libplexus-interpolation-java-doc
-Architecture: all
-Section: doc
-Depends: ${maven:DocDepends}, ${misc:Depends}
-Recommends: ${maven:DocOptionalDepends}
-Suggests: libplexus-interpolation-java
-Description: Documentation for Plexus Interpolation API
- The Plexus project provides a full software stack for creating and executing
- software projects. Based on the Plexus container, the applications can
- utilise component-oriented programming to build modular, reusable components
- that can easily be assembled and reused.
- .
- While Plexus is similar to other inversion-of-control (IoC) or dependency
- injection frameworks such as the Spring Framework, it is a full-fledged
- container that supports many more features such as:
- .
- * Component lifecycles
- * Component instantiation strategies
- * Nested containers
- * Component configuration
- * Auto-wiring
- * Component dependencies, and
- * Various dependency injection techniques including constructor injection,
- setter injection, and private field injection.
- .
- Plexus interpolator is focused on providing a more modular, flexible
- interpolation framework for the expression language style commonly seen in
- Maven, Plexus, and other related projects.
- .
- This package contains the API documentation of libplexus-interpolation-java.
=====================================
debian/libplexus-interpolation-java-doc.doc-base.api deleted
=====================================
@@ -1,10 +0,0 @@
-Document: libplexus-interpolation-java
-Title: API Javadoc for Plexus Interpolation API
-Author: Plexus Interpolation API developers
-Abstract: This is the API Javadoc provided for the
- libplexus-interpolation-java library.
-Section: Programming
-
-Format: HTML
-Index: /usr/share/doc/libplexus-interpolation-java/api/index.html
-Files: /usr/share/doc/libplexus-interpolation-java/api/*
=====================================
debian/libplexus-interpolation-java-doc.install deleted
=====================================
@@ -1 +0,0 @@
-target/apidocs/* usr/share/doc/libplexus-interpolation-java/api
=====================================
pom.xml
=====================================
@@ -8,16 +8,16 @@
</parent>
<artifactId>plexus-interpolation</artifactId>
- <version>1.25</version>
+ <version>1.26</version>
<packaging>bundle</packaging>
<name>Plexus Interpolation API</name>
<scm>
- <connection>scm:git:git at github.com:codehaus-plexus/plexus-interpolation.git</connection>
- <developerConnection>scm:git:git at github.com:codehaus-plexus/plexus-interpolation.git</developerConnection>
+ <connection>scm:git:https://github.com/codehaus-plexus/plexus-interpolation.git</connection>
+ <developerConnection>scm:git:https://github.com/codehaus-plexus/plexus-interpolation.git</developerConnection>
<url>http://github.com/codehaus-plexus/plexus-interpolation/tree/${project.scm.tag}/</url>
- <tag>plexus-interpolation-1.25</tag>
+ <tag>plexus-interpolation-1.26</tag>
</scm>
<issueManagement>
=====================================
src/main/java/org/codehaus/plexus/interpolation/StringSearchInterpolator.java
=====================================
@@ -138,136 +138,144 @@ public class StringSearchInterpolator
// return empty String to prevent NPE too
return "";
}
- StringBuilder result = new StringBuilder( input.length() * 2 );
int startIdx;
int endIdx = -1;
- while ( ( startIdx = input.indexOf( startExpr, endIdx + 1 ) ) > -1 )
+ if ( ( startIdx = input.indexOf( startExpr, endIdx + 1 ) ) > -1 )
{
- result.append( input, endIdx + 1, startIdx );
-
- endIdx = input.indexOf( endExpr, startIdx + 1 );
- if ( endIdx < 0 )
- {
- break;
- }
-
- final String wholeExpr = input.substring( startIdx, endIdx + endExpr.length() );
- String realExpr = wholeExpr.substring( startExpr.length(), wholeExpr.length() - endExpr.length() );
-
- if ( startIdx >= 0 && escapeString != null && escapeString.length() > 0 )
- {
- int startEscapeIdx = startIdx == 0 ? 0 : startIdx - escapeString.length();
- if ( startEscapeIdx >= 0 )
+ StringBuilder result = new StringBuilder( input.length() * 2 );
+ do
{
- String escape = input.substring( startEscapeIdx, startIdx );
- if ( escapeString.equals( escape ) )
- {
- result.append( wholeExpr );
- result.replace( startEscapeIdx, startEscapeIdx + escapeString.length(), "" );
- continue;
- }
- }
- }
+ result.append( input, endIdx + 1, startIdx );
- boolean resolved = false;
- if ( !unresolvable.contains( wholeExpr ) )
- {
- if ( realExpr.startsWith( "." ) )
+ endIdx = input.indexOf( endExpr, startIdx + 1 );
+ if ( endIdx < 0 )
{
- realExpr = realExpr.substring( 1 );
+ break;
}
- if ( recursionInterceptor.hasRecursiveExpression( realExpr ) )
- {
- throw new InterpolationCycleException( recursionInterceptor, realExpr, wholeExpr );
- }
+ final String wholeExpr = input.substring( startIdx, endIdx + endExpr.length() );
+ String realExpr = wholeExpr.substring( startExpr.length(), wholeExpr.length() - endExpr.length() );
- recursionInterceptor.expressionResolutionStarted( realExpr );
- try
+ if ( startIdx >= 0 && escapeString != null && escapeString.length() > 0 )
{
- Object value = existingAnswers.get( realExpr );
- Object bestAnswer = null;
-
- for ( ValueSource valueSource : valueSources )
+ int startEscapeIdx = startIdx == 0 ? 0 : startIdx - escapeString.length();
+ if ( startEscapeIdx >= 0 )
{
- if ( value != null )
+ String escape = input.substring( startEscapeIdx, startIdx );
+ if ( escapeString.equals( escape ) )
{
- break;
+ result.append(wholeExpr);
+ result.replace(startEscapeIdx, startEscapeIdx + escapeString.length(), "");
+ continue;
}
- value = valueSource.getValue( realExpr );
+ }
+ }
- if ( value != null && value.toString().contains( wholeExpr ) )
- {
- bestAnswer = value;
- value = null;
- }
+ boolean resolved = false;
+ if ( !unresolvable.contains( wholeExpr ) )
+ {
+ if ( realExpr.startsWith( "." ) )
+ {
+ realExpr = realExpr.substring(1);
}
- // this is the simplest recursion check to catch exact recursion
- // (non synonym), and avoid the extra effort of more string
- // searching.
- if ( value == null && bestAnswer != null )
+ if ( recursionInterceptor.hasRecursiveExpression( realExpr ) )
{
throw new InterpolationCycleException( recursionInterceptor, realExpr, wholeExpr );
}
- if ( value != null )
+ recursionInterceptor.expressionResolutionStarted( realExpr );
+ try
{
- value = interpolate( String.valueOf( value ), recursionInterceptor, unresolvable );
+ Object value = existingAnswers.get( realExpr );
+ Object bestAnswer = null;
+
+ for ( ValueSource valueSource : valueSources )
+ {
+ if ( value != null )
+ {
+ break;
+ }
+ value = valueSource.getValue( realExpr );
+
+ if ( value != null && value.toString().contains( wholeExpr ) )
+ {
+ bestAnswer = value;
+ value = null;
+ }
+ }
- if ( postProcessors != null && !postProcessors.isEmpty() )
+ // this is the simplest recursion check to catch exact recursion
+ // (non synonym), and avoid the extra effort of more string
+ // searching.
+ if ( value == null && bestAnswer != null )
{
- for ( InterpolationPostProcessor postProcessor : postProcessors )
+ throw new InterpolationCycleException( recursionInterceptor, realExpr, wholeExpr );
+ }
+
+ if ( value != null )
+ {
+ value = interpolate( String.valueOf(value), recursionInterceptor, unresolvable );
+
+ if ( postProcessors != null && !postProcessors.isEmpty() )
{
- Object newVal = postProcessor.execute( realExpr, value );
- if ( newVal != null )
+ for ( InterpolationPostProcessor postProcessor : postProcessors )
{
- value = newVal;
- break;
+ Object newVal = postProcessor.execute( realExpr, value );
+ if ( newVal != null )
+ {
+ value = newVal;
+ break;
+ }
}
}
- }
- // could use:
- // result = matcher.replaceFirst( stringValue );
- // but this could result in multiple lookups of stringValue, and replaceAll is not correct
- // behaviour
- result.append( String.valueOf( value ) );
- resolved = true;
+ // could use:
+ // result = matcher.replaceFirst( stringValue );
+ // but this could result in multiple lookups of stringValue, and replaceAll is not correct
+ // behaviour
+ result.append( String.valueOf( value ) );
+ resolved = true;
+ }
+ else
+ {
+ unresolvable.add( wholeExpr );
+ }
}
- else
+ finally
{
- unresolvable.add( wholeExpr );
+ recursionInterceptor.expressionResolutionFinished( realExpr );
}
}
- finally
+
+ if (!resolved)
{
- recursionInterceptor.expressionResolutionFinished( realExpr );
+ result.append( wholeExpr );
+ }
+
+ if ( endIdx > -1 )
+ {
+ endIdx += endExpr.length() - 1;
}
}
+ while ( ( startIdx = input.indexOf( startExpr, endIdx + 1 ) ) > -1);
- if ( !resolved )
+ if ( endIdx == -1 && startIdx > -1 )
{
- result.append( wholeExpr );
+ result.append( input, startIdx, input.length());
}
-
- if ( endIdx > -1 )
+ else if ( endIdx < input.length() )
{
- endIdx += endExpr.length() - 1;
+ result.append( input, endIdx + 1, input.length() );
}
- }
- if ( endIdx == -1 && startIdx > -1 )
- {
- result.append( input, startIdx, input.length());
+ return result.toString();
}
- else if ( endIdx < input.length() )
+ else
{
- result.append( input, endIdx + 1, input.length() );
+ return input;
}
-
- return result.toString();
}
/**
View it on GitLab: https://salsa.debian.org/java-team/plexus-interpolation/compare/fd80fc37e65272c6c2faa18f02cbbf3ba72eb190...5cd8ccd349794c70607bddb2062739d791e2176d
--
View it on GitLab: https://salsa.debian.org/java-team/plexus-interpolation/compare/fd80fc37e65272c6c2faa18f02cbbf3ba72eb190...5cd8ccd349794c70607bddb2062739d791e2176d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20190707/156be5a1/attachment.html>
More information about the pkg-java-commits
mailing list