Skip to content
GitLab
Explore
Sign in
Register
Commits on Source
2
New upstream version 3.2.0
· 75cd7778
Emmanuel Bourg
authored
Jun 13, 2018
75cd7778
New upstream version 3.2.1
· b234b129
Emmanuel Bourg
authored
Jun 13, 2018
b234b129
Show whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
b234b129
target/
.project
.classpath
.settings/
.svn/
bin/
# Intellij
*.ipr
*.iml
.idea
out/
.DS_Store
/bootstrap
/dependencies.xml
.java-version
Jenkinsfile
0 → 100644
View file @
b234b129
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
asfMavenTlpStdBuild
()
pom.xml
View file @
b234b129
...
...
@@ -28,25 +28,25 @@
</parent>
<artifactId>
maven-shared-utils
</artifactId>
<version>
3.
1.0
</version>
<version>
3.
2.1
</version>
<name>
Apache Maven Shared Utils
</name>
<description>
Shared utils without any further dependencies
</description>
<prerequisites>
<maven>
${mavenVersion}
</maven>
</prerequisites>
<scm>
<connection>
scm:
svn
:http://
svn
.apache.org/repos/asf/maven
/shared/tags/maven
-shared-utils
-3.1.0
</connection>
<developerConnection>
scm:
svn
:https://
svn
.apache.org/repos/asf/maven
/
shared
/tags/maven-shared-utils-3.1.0
<
/developerConnection
>
<
url>
http://svn.apache.org/viewvc/maven/shared/tags/
maven-shared-utils-3.
1.0
</url
>
<connection>
scm:
git
:http
s
://
gitbox
.apache.org/repos/asf/maven-shared-utils
.git
</connection>
<developerConnection>
scm:
git
:https://
gitbox
.apache.org/repos/asf/maven
-
shared
-utils.git
</developerConnection>
<
url>
https://github.com/apache/maven-shared-utils/tree/${project.scm.tag}
</url
>
<
tag>
maven-shared-utils-3.
2.1
</tag
>
</scm>
<issueManagement>
<system>
jira
</system>
<url>
https://issues.apache.org/jira/browse/MSHARED/component/12326452
</url>
</issueManagement>
<ciManagement>
<system>
Jenkins
</system>
<url>
https://builds.apache.org/job/maven-box/job/maven-shared-utils/
</url>
</ciManagement>
<distributionManagement>
<site>
<id>
apache.website
</id>
...
...
@@ -108,7 +108,7 @@
<dependency>
<groupId>
org.codehaus.plexus
</groupId>
<artifactId>
plexus-container-default
</artifactId>
<version>
1.
0-alpha-9-stable-
1
</version>
<version>
1.
7.
1
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
...
...
@@ -120,6 +120,20 @@
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.20.1
</version>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-failsafe-plugin
</artifactId>
<version>
2.20.1
</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
...
...
src/main/java/org/apache/maven/shared/utils/Os.java
View file @
b234b129
...
...
@@ -39,7 +39,7 @@ import java.util.Set;
* @author Magesh Umasankar
* @author Brian Fox
* @author Mark Struberg
* @version $Revision
: 1706295
$
* @version $Revision$
*
*/
public
class
Os
...
...
src/main/java/org/apache/maven/shared/utils/StringUtils.java
View file @
b234b129
...
...
@@ -49,7 +49,7 @@ import javax.annotation.Nullable;
* @author <a href="mailto:fredrik@westermarck.com">Fredrik Westermarck</a>
* @author Holger Krauth
* @author <a href="mailto:alex@purpletech.com">Alexander Day Chaffee</a>
* @version $Id
: StringUtils.java 1706704 2015-10-04 17:35:19Z khmarbaise
$
* @version $Id$
*
*/
public
class
StringUtils
...
...
src/main/java/org/apache/maven/shared/utils/WriterFactory.java
View file @
b234b129
...
...
@@ -40,7 +40,7 @@ import javax.annotation.Nonnull;
* @author Hervé Boutemy
* @see java.nio.charset.Charset
* @see <a href="http://docs.oracle.com/javase/1.5.0/docs/guide/intl/encoding.doc.html">Supported encodings</a>
* @version $Id
: WriterFactory.java 1627926 2014-09-27 07:01:33Z hboutemy
$
* @version $Id$
*/
public
class
WriterFactory
{
...
...
src/main/java/org/apache/maven/shared/utils/cli/CommandLineException.java
View file @
b234b129
...
...
@@ -21,7 +21,7 @@ package org.apache.maven.shared.utils.cli;
/**
* @author <a href="mailto:trygvis@inamo.no">Trygve Laugstøl</a>
* @version $Id
: CommandLineException.java 1706704 2015-10-04 17:35:19Z khmarbaise
$
* @version $Id$
*/
public
class
CommandLineException
extends
Exception
...
...
src/main/java/org/apache/maven/shared/utils/cli/CommandLineUtils.java
View file @
b234b129
...
...
@@ -36,22 +36,28 @@ import org.apache.maven.shared.utils.StringUtils;
/**
* @author <a href="mailto:trygvis@inamo.no">Trygve Laugstøl </a>
* @version $Id
: CommandLineUtils.java 1706704 2015-10-04 17:35:19Z khmarbaise
$
* @version $Id$
*/
public
abstract
class
CommandLineUtils
{
/**
* A {@code StreamConsumer} providing consumed lines as a {@code String}.
*
* @see #getOutput()
*/
public
static
class
StringStreamConsumer
implements
StreamConsumer
{
private
final
StringBuffer
string
=
new
StringBuffer
();
private
static
final
String
LS
=
System
.
getProperty
(
"line.separator"
);
private
static
final
String
LS
=
System
.
getProperty
(
"line.separator"
,
"\n"
);
/** {@inheritDoc} */
/**
* {@inheritDoc}
*/
@Override
public
void
consumeLine
(
String
line
)
{
string
.
append
(
line
).
append
(
LS
);
...
...
@@ -64,27 +70,18 @@ public abstract class CommandLineUtils
{
return
string
.
toString
();
}
}
private
static
class
ProcessHook
extends
Thread
{
private
final
Process
process
;
private
ProcessHook
(
Process
process
)
{
super
(
"CommandlineUtils process shutdown hook"
);
this
.
process
=
process
;
this
.
setContextClassLoader
(
null
);
}
/** {@inheritDoc} */
public
void
run
()
{
process
.
destroy
();
}
}
/**
* Number of milliseconds per second.
*/
private
static
final
long
MILLIS_PER_SECOND
=
1000L
;
/**
* Number of nanoseconds per second.
*/
private
static
final
long
NANOS_PER_SECOND
=
1000000000L
;
/**
* @param cl The command line {@link Commandline}
...
...
@@ -247,32 +244,48 @@ public abstract class CommandLineUtils
final
Process
p
=
cl
.
execute
();
final
StreamFeeder
inputFeeder
=
systemIn
!=
null
?
new
StreamFeeder
(
systemIn
,
p
.
getOutputStream
()
)
:
null
;
final
StreamPumper
outputPumper
=
new
StreamPumper
(
p
.
getInputStream
(),
systemOut
);
final
StreamPumper
errorPumper
=
new
StreamPumper
(
p
.
getErrorStream
(),
systemErr
);
final
Thread
processHook
=
new
Thread
()
{
if
(
inputFeeder
!=
null
)
{
inputFeeder
.
start
();
this
.
setName
(
"CommandLineUtils process shutdown hook"
);
this
.
setContextClassLoader
(
null
);
}
outputPumper
.
start
();
errorPumper
.
start
();
@Override
public
void
run
()
{
p
.
destroy
();
}
final
ProcessHook
processHook
=
new
ProcessHook
(
p
)
;
}
;
ShutdownHookUtils
.
addShutDownHook
(
processHook
);
return
new
CommandLineCallable
()
{
@Override
public
Integer
call
()
throws
CommandLineException
{
StreamFeeder
inputFeeder
=
null
;
StreamPumper
outputPumper
=
null
;
StreamPumper
errorPumper
=
null
;
try
{
if
(
systemIn
!=
null
)
{
inputFeeder
=
new
StreamFeeder
(
systemIn
,
p
.
getOutputStream
()
);
inputFeeder
.
start
();
}
outputPumper
=
new
StreamPumper
(
p
.
getInputStream
(),
systemOut
);
outputPumper
.
start
();
errorPumper
=
new
StreamPumper
(
p
.
getErrorStream
(),
systemErr
);
errorPumper
.
start
();
int
returnValue
;
if
(
timeoutInSeconds
<=
0
)
{
...
...
@@ -280,83 +293,123 @@ public abstract class CommandLineUtils
}
else
{
long
now
=
System
.
currentTimeMillis
();
long
timeoutInMillis
=
1000L
*
timeoutInSeconds
;
long
finish
=
now
+
timeoutInMillis
;
while
(
isAlive
(
p
)
&&
(
System
.
currentTimeMillis
()
<
finish
)
)
final
long
now
=
System
.
nanoTime
();
final
long
timeout
=
now
+
NANOS_PER_SECOND
*
timeoutInSeconds
;
while
(
isAlive
(
p
)
&&
(
System
.
nanoTime
()
<
timeout
)
)
{
Thread
.
sleep
(
10
);
// The timeout is specified in seconds. Therefore we must not sleep longer than one second
// but we should sleep as long as possible to reduce the number of iterations performed.
Thread
.
sleep
(
MILLIS_PER_SECOND
-
1L
);
}
if
(
isAlive
(
p
)
)
{
throw
new
InterruptedException
(
"Process timeout out after "
+
timeoutInSeconds
+
" seconds"
);
throw
new
InterruptedException
(
String
.
format
(
"Process timed out after %d seconds."
,
timeoutInSeconds
)
);
}
returnValue
=
p
.
exitValue
();
}
if
(
runAfterProcessTermination
!=
null
)
// TODO Find out if waitUntilDone needs to be called using a try-finally construct. The method may throw an
// InterruptedException so that calls to waitUntilDone may be skipped.
// try
// {
// if ( inputFeeder != null )
// {
// inputFeeder.waitUntilDone();
// }
// }
// finally
// {
// try
// {
// outputPumper.waitUntilDone();
// }
// finally
// {
// errorPumper.waitUntilDone();
// }
// }
if
(
inputFeeder
!=
null
)
{
runAfterProcessTermination
.
run
();
inputFeeder
.
waitUntilDone
();
}
waitForAllPumpers
(
inputFeeder
,
outputPumper
,
errorPumper
);
outputPumper
.
waitUntilDone
();
errorPumper
.
waitUntilDone
();
if
(
inputFeeder
!=
null
)
{
inputFeeder
.
close
();
if
(
inputFeeder
.
getException
()
!=
null
)
{
throw
new
CommandLineException
(
"Failure processing stdin."
,
inputFeeder
.
getException
()
);
}
}
if
(
outputPumper
.
getException
()
!=
null
)
{
throw
new
CommandLineException
(
"
Error inside systemOut parser
"
,
outputPumper
.
getException
()
);
throw
new
CommandLineException
(
"
Failure processing stdout.
"
,
outputPumper
.
getException
()
);
}
if
(
errorPumper
.
getException
()
!=
null
)
{
throw
new
CommandLineException
(
"
Error inside systemErr parser
"
,
errorPumper
.
getException
()
);
throw
new
CommandLineException
(
"
Failure processing stderr.
"
,
errorPumper
.
getException
()
);
}
return
returnValue
;
}
catch
(
InterruptedException
ex
)
{
throw
new
CommandLineTimeOutException
(
"Error while executing external command, process killed."
,
ex
);
}
finally
{
if
(
inputFeeder
!=
null
)
{
inputFeeder
.
disable
();
}
if
(
outputPumper
!=
null
)
{
outputPumper
.
disable
();
}
if
(
errorPumper
!=
null
)
{
errorPumper
.
disable
();
throw
new
CommandLineTimeOutException
(
"Error while executing external command, process killed."
,
ex
);
}
try
{
if
(
runAfterProcessTermination
!=
null
)
{
runAfterProcessTermination
.
run
();
}
}
finally
{
ShutdownHookUtils
.
removeShutdownHook
(
processHook
);
try
{
processHook
.
run
();
}
finally
{
if
(
inputFeeder
!=
null
)
{
inputFeeder
.
close
();
}
outputPumper
.
close
();
errorPumper
.
close
();
}
}
};
}
private
static
void
waitForAllPumpers
(
@Nullable
StreamFeeder
inputFeeder
,
StreamPumper
outputPumper
,
StreamPumper
errorPumper
)
throws
InterruptedException
{
if
(
inputFeeder
!=
null
)
{
inputFeeder
.
waitUntilDone
();
}
outputPumper
.
waitUntilDone
();
errorPumper
.
waitUntilDone
();
};
}
/**
...
...
src/main/java/org/apache/maven/shared/utils/cli/DefaultConsumer.java
View file @
b234b129
...
...
@@ -19,16 +19,27 @@ package org.apache.maven.shared.utils.cli;
* under the License.
*/
import
java.io.IOException
;
/**
* @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id
: DefaultConsumer.java 1706704 2015-10-04 17:35:19Z khmarbaise
$
* @version $Id$
*/
public
class
DefaultConsumer
implements
StreamConsumer
{
/** {@inheritDoc} */
public
void
consumeLine
(
String
line
)
/**
* {@inheritDoc}
*/
@Override
public
void
consumeLine
(
String
line
)
throws
IOException
{
System
.
out
.
println
(
line
);
if
(
System
.
out
.
checkError
()
)
{
throw
new
IOException
(
String
.
format
(
"Failure writing line '%s' to stdout."
,
line
)
);
}
}
}
src/main/java/org/apache/maven/shared/utils/cli/StreamConsumer.java
View file @
b234b129
...
...
@@ -19,6 +19,8 @@ package org.apache.maven.shared.utils.cli;
* under the License.
*/
import
java.io.IOException
;
/**
* Works in concert with the StreamPumper class to
* allow implementations to gain access to the lines being
...
...
@@ -35,6 +37,7 @@ public interface StreamConsumer
/**
* Called when the StreamPumper pumps a line from the Stream.
* @param line The line to be consumed.
* @throws IOException if consuming {@code line} fails.
*/
void
consumeLine
(
String
line
);
void
consumeLine
(
String
line
)
throws
IOException
;
}
src/main/java/org/apache/maven/shared/utils/cli/StreamFeeder.java
View file @
b234b129
...
...
@@ -28,30 +28,31 @@ import java.util.concurrent.atomic.AtomicReference;
* Read from an InputStream and write the output to an OutputStream.
*
* @author <a href="mailto:trygvis@inamo.no">Trygve Laugstøl</a>
* @version $Id
: StreamFeeder.java 1703274 2015-09-15 19:20:31Z tibordigana
$
* @version $Id$
*/
class
StreamFeeder
extends
AbstractStreamHandler
{
private
final
AtomicReference
<
InputStream
>
input
;
private
final
AtomicReference
<
OutputStream
>
output
;
private
volatile
Throwable
exception
;
/**
* Create a new StreamFeeder
*
* @param input Stream to read from
* @param output Stream to write to
*/
public
StreamFeeder
(
InputStream
input
,
OutputStream
output
)
StreamFeeder
(
InputStream
input
,
OutputStream
output
)
{
super
();
this
.
input
=
new
AtomicReference
<
InputStream
>(
input
);
this
.
output
=
new
AtomicReference
<
OutputStream
>(
output
);
}
// ----------------------------------------------------------------------
// Runnable implementation
// ----------------------------------------------------------------------
@Override
public
void
run
()
{
...
...
@@ -62,6 +63,10 @@ class StreamFeeder
catch
(
Throwable
e
)
{
// Catch everything so the streams will be closed and flagged as done.
if
(
this
.
exception
!=
null
)
{
this
.
exception
=
e
;
}
}
finally
{
...
...
@@ -74,10 +79,6 @@ class StreamFeeder
}
}
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
public
void
close
()
{
setDone
();
...
...
@@ -90,7 +91,10 @@ class StreamFeeder
}
catch
(
IOException
ex
)
{
// ignore
if
(
this
.
exception
!=
null
)
{
this
.
exception
=
ex
;
}
}
}
...
...
@@ -103,14 +107,21 @@ class StreamFeeder
}
catch
(
IOException
ex
)
{
// ignore
if
(
this
.
exception
!=
null
)
{
this
.
exception
=
ex
;
}
}
}
}
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
/**
* @since 3.2.0
*/
public
Throwable
getException
()
{
return
this
.
exception
;
}
@SuppressWarnings
(
"checkstyle:innerassignment"
)
private
void
feed
()
...
...
@@ -118,6 +129,8 @@ class StreamFeeder
{
InputStream
is
=
input
.
get
();
OutputStream
os
=
output
.
get
();
boolean
flush
=
false
;
if
(
is
!=
null
&&
os
!=
null
)
{
for
(
int
data
;
!
isDone
()
&&
(
data
=
is
.
read
()
)
!=
-
1
;
)
...
...
@@ -125,7 +138,13 @@ class StreamFeeder
if
(
!
isDisabled
()
)
{
os
.
write
(
data
);
flush
=
true
;
}
}
if
(
flush
)
{
os
.
flush
();
}
}
}
...
...
src/main/java/org/apache/maven/shared/utils/cli/StreamPumper.java
View file @
b234b129
...
...
@@ -23,14 +23,10 @@ import java.io.BufferedReader;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStreamReader
;
import
java.io.PrintWriter
;
import
java.io.Reader
;
import
java.nio.charset.Charset
;
import
javax.annotation.Nullable
;
import
org.apache.maven.shared.utils.io.IOUtil
;
/**
* Class to pump the error stream during Process's runtime. Copied from the Ant built-in task.
*
...
...
@@ -44,8 +40,6 @@ public class StreamPumper
private
final
StreamConsumer
consumer
;
private
final
PrintWriter
out
;
private
volatile
Exception
exception
=
null
;
private
static
final
int
SIZE
=
1024
;
...
...
@@ -56,7 +50,7 @@ public class StreamPumper
*/
public
StreamPumper
(
InputStream
in
,
StreamConsumer
consumer
)
{
this
(
new
InputStreamReader
(
in
),
null
,
consumer
);
this
(
new
InputStreamReader
(
in
),
consumer
);
}
/**
...
...
@@ -66,18 +60,17 @@ public class StreamPumper
*/
public
StreamPumper
(
InputStream
in
,
StreamConsumer
consumer
,
@Nullable
Charset
charset
)
{
this
(
null
==
charset
?
new
InputStreamReader
(
in
)
:
new
InputStreamReader
(
in
,
charset
),
null
,
consumer
);
this
(
null
==
charset
?
new
InputStreamReader
(
in
)
:
new
InputStreamReader
(
in
,
charset
),
consumer
);
}
/**
* @param in {@link Writer}
* @param writer {@link PrintWriter}
* @param in {@link Reader}
* @param consumer {@link StreamConsumer}
*/
private
StreamPumper
(
Reader
in
,
PrintWriter
writer
,
StreamConsumer
consumer
)
private
StreamPumper
(
Reader
in
,
StreamConsumer
consumer
)
{
super
();
this
.
in
=
new
BufferedReader
(
in
,
SIZE
);
this
.
out
=
writer
;
this
.
consumer
=
consumer
;
}
...
...
@@ -99,14 +92,6 @@ public class StreamPumper
{
exception
=
t
;
}
if
(
out
!=
null
)
{
out
.
println
(
line
);
out
.
flush
();
}
}
}
catch
(
IOException
e
)
...
...
@@ -115,7 +100,17 @@ public class StreamPumper
}
finally
{
IOUtil
.
close
(
in
);
try
{
in
.
close
();
}
catch
(
final
IOException
e2
)
{
if
(
this
.
exception
==
null
)
{
this
.
exception
=
e2
;
}
}
synchronized
(
this
)
{
...
...
@@ -128,21 +123,24 @@ public class StreamPumper
/**
* flush.
*
* @deprecated As of 3.2.0, removed without replacement.
*/
@Deprecated
public
void
flush
()
{
if
(
out
!=
null
)
{
out
.
flush
();
}
// Nothing to flush.
}
/**
* Close it.
*
* @deprecated As of 3.2.0, removed without replacement.
*/
@Deprecated
public
void
close
()
{
IOUtil
.
close
(
out
);
// Nothing to close.
}
/**
...
...
@@ -153,7 +151,7 @@ public class StreamPumper
return
exception
;
}
private
void
consumeLine
(
String
line
)
private
void
consumeLine
(
String
line
)
throws
IOException
{
if
(
consumer
!=
null
&&
!
isDisabled
()
)
{
...
...
src/main/java/org/apache/maven/shared/utils/cli/WriterStreamConsumer.java
View file @
b234b129
...
...
@@ -19,33 +19,38 @@ package org.apache.maven.shared.utils.cli;
* under the License.
*/
import
java.io.PrintWriter
;
import
java.io.BufferedWriter
;
import
java.io.IOException
;
import
java.io.Writer
;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id
: WriterStreamConsumer.java 1706713 2015-10-04 18:30:03Z khmarbaise
$
* @version $Id$
*/
public
class
WriterStreamConsumer
implements
StreamConsumer
{
private
final
Print
Writer
writer
;
private
final
Buffered
Writer
writer
;
/**
* @param writer {@link Writer}
*/
public
WriterStreamConsumer
(
Writer
writer
)
{
this
.
writer
=
new
PrintWriter
(
writer
);
super
();
this
.
writer
=
new
BufferedWriter
(
writer
);
}
/** {@inheritDoc}
/**
* {@inheritDoc}
*/
public
void
consumeLine
(
String
line
)
@Override
public
void
consumeLine
(
String
line
)
throws
IOException
{
writer
.
println
(
line
);
writer
.
flush
();
this
.
writer
.
append
(
line
);
this
.
writer
.
newLine
();
this
.
writer
.
flush
();
}
}
src/main/java/org/apache/maven/shared/utils/cli/javatool/AbstractJavaTool.java
View file @
b234b129
...
...
@@ -199,6 +199,7 @@ public abstract class AbstractJavaTool<Request extends JavaToolRequest>
/**
* {@inheritDoc}
*/
@Override
public
void
consumeLine
(
final
String
line
)
{
getLogger
().
warn
(
line
);
...
...
@@ -226,6 +227,7 @@ public abstract class AbstractJavaTool<Request extends JavaToolRequest>
/**
* {@inheritDoc}
*/
@Override
public
void
consumeLine
(
final
String
line
)
{
getLogger
().
info
(
line
);
...
...
src/main/java/org/apache/maven/shared/utils/cli/javatool/JavaToolException.java
View file @
b234b129
...
...
@@ -27,7 +27,7 @@ package org.apache.maven.shared.utils.cli.javatool;
* non-zero exit code.
*
* @author Tony Chemit <chemit@codelutin.com>
* @version $Id
: JavaToolException.java 1706713 2015-10-04 18:30:03Z khmarbaise
$
* @version $Id$
* @see JavaToolResult#getExitCode()
* @since 0.5
*/
...
...
src/main/java/org/apache/maven/shared/utils/introspection/IntrospectionException.java
View file @
b234b129
...
...
@@ -28,12 +28,12 @@ class IntrospectionException
*/
private
static
final
long
serialVersionUID
=
-
6090771282553728784L
;
public
IntrospectionException
(
String
message
)
IntrospectionException
(
String
message
)
{
super
(
message
);
}
public
IntrospectionException
(
Throwable
cause
)
IntrospectionException
(
Throwable
cause
)
{
super
(
cause
);
}
...
...
src/main/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractor.java
View file @
b234b129
...
...
@@ -76,7 +76,7 @@ public class ReflectionValueExtractor
int
idx
;
public
Tokenizer
(
String
expression
)
Tokenizer
(
String
expression
)
{
this
.
expression
=
expression
;
}
...
...
src/main/java/org/apache/maven/shared/utils/io/DirectoryWalker.java
View file @
b234b129
...
...
@@ -67,7 +67,7 @@ class DirectoryWalker
* @param d the directory to track
* @param length the length of entries in the directory.
*/
public
DirStackEntry
(
File
d
,
int
length
)
DirStackEntry
(
File
d
,
int
length
)
{
dir
=
d
;
count
=
length
;
...
...
@@ -125,7 +125,7 @@ class DirectoryWalker
private
final
List
<
DirectoryWalkListener
>
listeners
;
public
DirectoryWalker
()
DirectoryWalker
()
{
this
.
includes
=
new
ArrayList
<
String
>();
this
.
excludes
=
new
ArrayList
<
String
>();
...
...
src/main/java/org/apache/maven/shared/utils/io/FileUtils.java
View file @
b234b129
...
...
@@ -84,7 +84,7 @@ import java.util.Random;
* @author <a href="mailto:Christoph.Reck@dlr.de">Christoph.Reck</a>
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
* @version $Id
: FileUtils.java 1749802 2016-06-23 00:37:53Z schulte
$
* @version $Id$
*/
public
class
FileUtils
{
...
...
src/main/java/org/apache/maven/shared/utils/io/IOUtil.java
View file @
b234b129
...
...
@@ -83,7 +83,7 @@ import java.nio.channels.Channel;
*
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
* @version CVS $Revision
: 1750548 $ $Date: 2016-06-28 19:32:21 +0200 (Tue, 28 Jun 2016)
$
* @version CVS $Revision
$ $Date
$
*
*/
public
final
class
IOUtil
...
...
Prev
1
2
3
Next