|
|
|
|
Re: how to configure access rules for ecj when run by maven? [message #1818206 is a reply to message #1818167] |
Tue, 10 December 2019 08:58 |
Radoslav Paskalev Messages: 3 Registered: December 2019 |
Junior Member |
|
|
Thanks, but i don't think this will do the job. The parameter -annotationpath is for providing the location to external annotations, i don't think it is the same as configuring the access rules. In the batch compiler help the access rules are described as
Quote:-cp
-classpath <dir 1>;<dir 2>;...;<dir P> This is a list of directories or jar files used to compile the source files. The default value is the value of the property "java.class.path". Entries are separated by the platform path separator.
Each directory or file can specify access rules for types between '[' and ']' (e.g. [-X] to forbid access to type X, [~X] to discourage access to type X, [+p/X:-p/*] to forbid access to all types in package p but allow access to p/X).
But since in my case the classpath is owned by Maven, i was wondering if is there any other way to provide access rules to ecj. For example, thru the prefs file or the environment or something else, that i'm missing.
Ed Willink wrote on Mon, 09 December 2019 09:22Hi
Not sure if this helps, but in my pom.xml I have:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho-version}</version>
<configuration><!-- Workaround Bug 526011 -->
<compilerArgs>
<arg>-annotationpath</arg>
<arg>${project.basedir}/../../plugins/org.eclipse.ocl.pivot/annotations</arg>
</compilerArgs>
</configuration>
Regards
Ed Willink
|
|
|
|
Powered by
FUDForum. Page generated in 0.03193 seconds