Skip to content

Allow Argument Files #27

@nipafx

Description

@nipafx

It is currently not possible to pass argument files to javac like so:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-compiler-plugin</artifactId>
	<configuration>
		<compilerArgs>
			<!-- NOPE! 😢 -->
			<arg>@somefile</arg>
		</compilerArgs>
	</configuration>
</plugin>

The reason is that JavacCompiler creates its own temporary argument file, including @somefile but recursive @s are not supported by javac. The obvious (only?) solution would be to give the compiler a separate option for argument files that are not included into the temporary one, e.g:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-compiler-plugin</artifactId>
	<configuration>
		<!-- strawman syntax! -->
		<compilerArgFiles>
			<argFile>@somefile</argFile>
		</compilerArgs>
	</configuration>
</plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions