Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JDT Builder : My .emtl files in the Java output folder
JDT Builder : My .emtl files in the Java output folder [message #257753] Thu, 11 December 2008 13:33 Go to next message
Eclipse UserFriend
Hi,

I'm writing the M2T/MTL builder
I have an .mtl file in a java source folder (src) and I create an .emtl
file in the output source folder (bin)
It works but sometimes my .emtl files are deleted in the "bin" folder
(I don't have to wait more than 2 minutes)

I have disabled the JDT build, and now it works
I think that the JDT builder deletes bad files (old output files)
But for MTL, the .emtl file is like the .class file
How can I do?
Is there an extension point to keep that kind of files in the output folder?

Cheers,

Jonathan Musset
Re: JDT Builder : My .emtl files in the Java output folder [message #257770 is a reply to message #257753] Thu, 11 December 2008 20:22 Go to previous messageGo to next message
Eclipse UserFriend
Jonathan MUSSET wrote:
> Hi,
>
> I'm writing the M2T/MTL builder
> I have an .mtl file in a java source folder (src) and I create an .emtl
> file in the output source folder (bin)
> It works but sometimes my .emtl files are deleted in the "bin" folder
> (I don't have to wait more than 2 minutes)
>
> I have disabled the JDT build, and now it works
> I think that the JDT builder deletes bad files (old output files)
> But for MTL, the .emtl file is like the .class file
> How can I do?
> Is there an extension point to keep that kind of files in the output
> folder?

Can you output your .emtl files to a different folder than "bin", and
then just add that folder to the build.properties or whatever you are
using to produce your final artifact?
Re: JDT Builder : My .emtl files in the Java output folder [message #257781 is a reply to message #257770] Fri, 12 December 2008 08:30 Go to previous messageGo to next message
Eclipse UserFriend
Thank you Walter,
The problem is that I would like to build my .emtl files with my .class
files, in the same jar
I need to have my .emtl files in the java classpath
A solution is to rename .emtl to .mtl
It works if I have the same name both in the 'src' folder and in the
'bin' folder.
But, why the .class files are not automatically deleted by the Java
builder? "Sample.java" != "Sample.class"
I would like to do the same kind of thing.
My builder is able to delete my old .emtl files
Why the Java builder do that for me? Is it a bug? Is there a workaround?
Cheers,

Jonathan




Walter Harley a écrit :
> Jonathan MUSSET wrote:
>> Hi,
>>
>> I'm writing the M2T/MTL builder
>> I have an .mtl file in a java source folder (src) and I create an
>> .emtl file in the output source folder (bin)
>> It works but sometimes my .emtl files are deleted in the "bin" folder
>> (I don't have to wait more than 2 minutes)
>>
>> I have disabled the JDT build, and now it works
>> I think that the JDT builder deletes bad files (old output files)
>> But for MTL, the .emtl file is like the .class file
>> How can I do?
>> Is there an extension point to keep that kind of files in the output
>> folder?
>
> Can you output your .emtl files to a different folder than "bin", and
> then just add that folder to the build.properties or whatever you are
> using to produce your final artifact?
Re: JDT Builder : My .emtl files in the Java output folder [message #257829 is a reply to message #257781] Tue, 16 December 2008 11:21 Go to previous message
Eclipse UserFriend
Has anyone an answer to these questions?


Jonathan MUSSET a écrit :
> Thank you Walter,
> The problem is that I would like to build my .emtl files with my .class
> files, in the same jar
> I need to have my .emtl files in the java classpath
> A solution is to rename .emtl to .mtl
> It works if I have the same name both in the 'src' folder and in the
> 'bin' folder.
> But, why the .class files are not automatically deleted by the Java
> builder? "Sample.java" != "Sample.class"
> I would like to do the same kind of thing.
> My builder is able to delete my old .emtl files
> Why the Java builder do that for me? Is it a bug? Is there a workaround?
> Cheers,
>
> Jonathan
>
>
>
>
> Walter Harley a écrit :
>> Jonathan MUSSET wrote:
>>> Hi,
>>>
>>> I'm writing the M2T/MTL builder
>>> I have an .mtl file in a java source folder (src) and I create an
>>> .emtl file in the output source folder (bin)
>>> It works but sometimes my .emtl files are deleted in the "bin" folder
>>> (I don't have to wait more than 2 minutes)
>>>
>>> I have disabled the JDT build, and now it works
>>> I think that the JDT builder deletes bad files (old output files)
>>> But for MTL, the .emtl file is like the .class file
>>> How can I do?
>>> Is there an extension point to keep that kind of files in the output
>>> folder?
>>
>> Can you output your .emtl files to a different folder than "bin", and
>> then just add that folder to the build.properties or whatever you are
>> using to produce your final artifact?
Previous Topic:jump to resource in navigator
Next Topic:Problem with JUnit 4 / JUNIT_HOME
Goto Forum:
  


Current Time: Sat Apr 26 00:03:59 EDT 2025

Powered by FUDForum. Page generated in 0.03250 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top