[nbdev] Re: How to test module depending on nb-javac-*.jar

  • From: Radim Kubacki < >
  • To: Jan Lahoda < >
  • Cc:
  • Subject: [nbdev] Re: How to test module depending on nb-javac-*.jar
  • Date: Sat, 3 Nov 2012 16:17:11 +0100

And now there is another question: it works perfectly when running my
tests locally but fails in my Jenkins. Any idea? I guess that Ant
spawned from Jenkins (or running in-process? I need to find out) will
somehow put original javac on classpath again.

-Radim

2012/10/9 Radim Kubacki 
< >:
> Awesome, that's the trick. Thanks!
>
> -Radim
>
> 2012/10/9 Jan Lahoda 
> < >:
>> Hi Radim,
>>
>> Please try to add:
>> requires.nb.javac=true
>> into the nbproject/project.properties of that project. Let me know if
>> that does not fix the problem.
>>
>> Jan
>>
>> On Tue, Oct 9, 2012 at 11:20 AM, Radim Kubacki 
>> < >
>>  wrote:
>>> Hi,
>>>
>>> I have a code that analyzes content of Java source file (generated
>>> R.java) in one of nbandroid plugin
>>> (http://kenai.com/projects/nbandroid/sources/mercurial/content/grammars/src/org/netbeans/modules/android/grammars/ProjectRefResolver.java?rev=609).
>>> It worked fine and I was interested in VariableName.getSimpleName()
>>> value. Now I added VariableName.getConstant() and my unit test fails
>>> with NoSuchMethodError somewhere in com/sun/tools/javac/... but it
>>> runs OK inside NetBeans runtime.
>>>
>>> I suspect this is because my code is compiled against NetBeans'
>>> version of javac but the test runs with classes from tools.jar shipped
>>> with JDK. Is this correct? How do I fix that (I want running code
>>> *and* running test)?
>>>
>>> -Radim


[nbdev] Re: How to test module depending on nb-javac-*.jar

Radim Kubacki 11/03/2012

[nbdev] Re: How to test module depending on nb-javac-*.jar

Radim Kubacki 11/04/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close