On 6/17/25 00:08, Saravanan Palanichamy wrote:
Hi Jochen/Other devs
Please ignore my previous email. I have narrowed down the problem. I
will state what I am doing first
1. I have my own ClassNodeResolver that overrides findClassNode and
finds source units that match the class being l
Hi Jochen/Other devs
Please ignore my previous email. I have narrowed down the problem. I will
state what I am doing first
1. I have my own ClassNodeResolver that overrides findClassNode and
finds source units that match the class being looked for. I return the
sourceunit if the class na
Hi Jochen
> The compile error is that a class gets left behind in the
> CompileUnit's classesToCompile. I think this is because I am returning a
> source unit that contains both outer and inner classes when the look up
> should have returned an inner class. What is the right way to fix this?
> Sho
On 12.06.25 16:07, Saravanan Palanichamy wrote:
Thank you Jochen,
I made some progress based on your recommendations in this manner
1. Added one source file as source unit to the compilation unit
2. I use a compilation unit that uses my custom ClassNodeResolver that
derives from the base
Thank you Jochen,
I made some progress based on your recommendations in this manner
1. Added one source file as source unit to the compilation unit
2. I use a compilation unit that uses my custom ClassNodeResolver that
derives from the base ClassNodeResolver
3. When it hits the findCl
On 10.06.25 15:15, Saravanan Palanichamy wrote:
[...]
1. Add ABC.java as the only source unit. Then I override resolve
visitor, to detect all resolve attempts. I now know what other
classes need to be resolved, so I try to add new files to the
compilation units. The code looks like i
Given a Groovy source can contain any number of classes with any names, the
detection that ABC depends on a given source DEF is going to be rather at the
difficult side.
The only solution I can see is to build all the sources at start and use
appropriate ASTTs to create a complete map source <-
Hi Jochen
Thank you for the explanation. I am not trying to do this with a build
system like gradle or make. I am hosting the Groovy Compiler in a Java CLI
and I have my own customizations. This is my setup
- A Java CLI that bundles the Groovy Compiler and takes command like
options to fee
crementalCompilation
*From:* Saravanan Palanichamy
*Sent:* Monday, June 9, 2025 11:01 AM
*To:* dev@groovy.apache.org
*Subject:* [EXT] Re: Controlled compilation
*External Email:* Use caution with links and attachments.
Thank you Jochen for your reply
some
s://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#useIncrementalCompilation
>
>
> --
> *From:* Saravanan Palanichamy
> *Sent:* Monday, June 9, 2025 11:01 AM
> *To:* dev@groovy.apache.org
> *Subject:* [EXT] Re: Controlled compilation
&g
since Maven 3.1:
https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#useIncrementalCompilation
From: Saravanan Palanichamy
Sent: Monday, June 9, 2025 11:01 AM
To: dev@groovy.apache.org
Subject: [EXT] Re: Controlled compilation
External Ema
Thank you Jochen for your reply
some followup
- My source files may be in different locations (I want to say here's
three different source directories, they form the source closure. But
compile only foo.groovy and let the compiler decide what other files in
what locations need to be p
On 09.06.25 09:21, Saravanan Palanichamy wrote:
Hello Groovy devs
I am trying to understand how to do this with the Groovy Compiler
* I have say 20 files in my project
* I know I have to compile just one of those files
groovyc foo.groovy
will compile foo.groovy and potentially its depend
13 matches
Mail list logo