Skip to content

change package to org.codehaus.plexus.build #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ See the Apache License Version 2.0 for the specific language governing permissio
</parent>

<artifactId>plexus-build-api</artifactId>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version>

<scm>
<connection>scm:git:https://github.com/codehaus-plexus/plexus-build-api.git</connection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/
package org.sonatype.plexus.build.incremental;
package org.codehaus.plexus.build;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/

package org.sonatype.plexus.build.incremental;
package org.codehaus.plexus.build;

import javax.inject.Named;
import javax.inject.Singleton;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.file.Files;
import java.util.List;

import org.codehaus.plexus.util.DirectoryScanner;
Expand Down Expand Up @@ -69,7 +69,7 @@ public boolean hasDelta(List<String> relpaths) {

/** {@inheritDoc} */
public OutputStream newFileOutputStream(File file) throws IOException {
return new FileOutputStream(file);
return Files.newOutputStream(file.toPath());
}

/** {@inheritDoc} */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/

package org.sonatype.plexus.build.incremental;
package org.codehaus.plexus.build;

import java.io.File;
import java.util.Comparator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/

package org.sonatype.plexus.build.incremental;
package org.codehaus.plexus.build;

import java.io.File;
import java.io.IOException;
Expand All @@ -23,7 +23,7 @@
/**
* BuildContext implementation that delegates actual work to thread-local
* build context set using {@link #setThreadBuildContext(BuildContext)}.
* {@link org.sonatype.plexus.build.incremental.DefaultBuildContext} is used if no thread local build context was set.
* {@link DefaultBuildContext} is used if no thread local build context was set.
*
* Note that plexus component metadata is not generated for this implementation.
* Apparently, older version of plexus used by maven-filtering and likely
Expand All @@ -47,7 +47,7 @@ protected BuildContext initialValue() {
/**
* <p>getContext.</p>
*
* @return a {@link org.sonatype.plexus.build.incremental.BuildContext} object.
* @return a {@link BuildContext} object.
*/
public static BuildContext getContext() {
return threadContext.get();
Expand All @@ -56,7 +56,7 @@ public static BuildContext getContext() {
/**
* <p>setThreadBuildContext.</p>
*
* @param context a {@link org.sonatype.plexus.build.incremental.BuildContext} object.
* @param context a {@link BuildContext} object.
*/
public static void setThreadBuildContext(BuildContext context) {
threadContext.set(context);
Expand Down Expand Up @@ -143,12 +143,12 @@ public void removeMessages(File file) {

/** {@inheritDoc} */
public void addWarning(File file, int line, int column, String message, Throwable cause) {
addMessage(file, line, column, message, BuildContext.SEVERITY_WARNING, cause);
addMessage(file, line, column, message, SEVERITY_WARNING, cause);
}

/** {@inheritDoc} */
public void addError(File file, int line, int column, String message, Throwable cause) {
addMessage(file, line, column, message, BuildContext.SEVERITY_ERROR, cause);
addMessage(file, line, column, message, SEVERITY_ERROR, cause);
}

/** {@inheritDoc} */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/

package org.sonatype.plexus.build.incremental.test;
package org.codehaus.plexus.build.test;

import java.util.Map;

import org.sonatype.plexus.build.incremental.DefaultBuildContext;
import org.codehaus.plexus.build.DefaultBuildContext;


public class TestFullBuildContext extends DefaultBuildContext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/

package org.sonatype.plexus.build.incremental.test;
package org.codehaus.plexus.build.test;

import java.io.File;
import java.io.FileOutputStream;
Expand All @@ -25,9 +25,9 @@
import java.util.Map;
import java.util.Set;

import org.codehaus.plexus.build.BuildContext;
import org.codehaus.plexus.util.DirectoryScanner;
import org.codehaus.plexus.util.Scanner;
import org.sonatype.plexus.build.incremental.BuildContext;

public class TestIncrementalBuildContext implements BuildContext {

Expand All @@ -52,7 +52,7 @@ public String[] getIncludedDirectories() {
}

public String[] getIncludedFiles() {
return (String[]) files.toArray(new String[files.size()]);
return (String[]) files.toArray(new String[0]);
}

public void scan() {
Expand Down