Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] Get notified on runtime classpath changes

JavaCore.addElementChangedListener() ?

Kind regards,
Andrey Loskutov

Спасение утопающих - дело рук самих утопающих

https://www.eclipse.org/user/aloskutov


> Gesendet: Mittwoch, 03. Februar 2021 um 12:57 Uhr
> Von: "Christoph Läubrich" <laeubi@xxxxxxxxxxxxxx>
> An: jdt-dev@xxxxxxxxxxx
> Betreff: [jdt-dev] Get notified on runtime classpath changes
>
> Is there a way to be notified about any change on the classpath e.g.:
> 
> - class file replaced (in this or any related project)
> - jar added
> - maven dependency updated
> 
> I don't really care about the type or source, I just want to update some 
> internal state whenever anything changes that could affect a previous 
> run of a tool that uses the
> 
> String[] classPathEntries = 
> JavaRuntime.computeDefaultRuntimeClassPath(javaProject);
> 
> to build a classloader so I know i need to refresh this. A 
> Resourcelistener and/or builder seem to be covering much more than I 
> need and wouldn't be specific enough so I wonder if there is anything I 
> could use for this specific case, I assume that JDT already knows when 
> something changes here and recompile classes as necessary...
> 
> _______________________________________________
> jdt-dev mailing list
> jdt-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev
>


Back to the top