[Eclipse / Ant] How to write protect source-code folders?

Discussion in 'Java' started by MArtin Schumacher, Dec 14, 2003.

  1. Hi everyone,

    I've got here an interesting problem:
    We generate some classes for our project with androMDA[1]. This sources
    now should be readable in Eclipse. But only readable, nobody should be
    able to edit them. The best would be an file-system-based write
    protection. But only Eclipse would be usefull too.

    Does anyone knows an option or a property in Eclipse to write protect
    different source-code folders? We have one source-code folder for our
    handwritten code and several different folders which contain the
    generated source code. These folders we want to writeprotect.

    We played around a little bit with ant to solve this. We integrated in
    our build file an ant-zip-task. In the zipfileset element we could set
    the writeprotection via an unix-style comnination of numbers (like chmod
    777). That works fine, but ant-the unzip-task does not regognize the
    file settings. and unpacks everything without write protection. With
    other Zip-tools we can unpack the source code files as they are in the
    zip - write protected...

    Has anyone an idea how to solve this?

    Thanks,
    MArtin


    [1] http://www.andromda.org
     
    MArtin Schumacher, Dec 14, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joshua Jones
    Replies:
    1
    Views:
    469
    zoopy
    Aug 19, 2004
  2. Replies:
    1
    Views:
    563
    Larry
    Mar 7, 2006
  3. Merlijn
    Replies:
    0
    Views:
    3,495
    Merlijn
    Mar 24, 2006
  4. blazingwolf7

    Exclude Folders From Being Copy(Ant)

    blazingwolf7, Dec 22, 2008, in forum: Java
    Replies:
    0
    Views:
    2,005
    blazingwolf7
    Dec 22, 2008
  5. Replies:
    17
    Views:
    119
    Rustom Mody
    May 22, 2014
Loading...

Share This Page