Skip to content

Don't create javac.[sh|bat] or org.codehaus.plexus.compiler.javac.JavacCompiler*arguments in target/*classes #165

Closed
@zregvart

Description

@zregvart

When debug logging is turned on Javac Plexus compiler creates two additional files in target/classes or target/test-classes. These files will be also included in the built artifact, say a JAR file.

This is done here:

File commandLineFile =
new File( config.getOutputLocation(), "javac." + ( Os.isFamily( Os.FAMILY_WINDOWS ) ? "bat" : "sh" ) );

And here:

tempFile =
File.createTempFile( JavacCompiler.class.getName(), "arguments", new File( outputDirectory ) );

Seems that the calls to config.getOutputLocation() need to be replaced with config.getBuildDirectory() in those two instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions