Plugin files cannot be overwritten?

Discussion in 'Plugin Development' started by Raphfrk, Feb 20, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Raphfrk

    It seems that with the latest version of CraftBukkit, it is not possible to overwrite plugins in the /plugins directory (in windows at least).

    This makes it much more annoying to test out plugins. Currently I copy/overwrite with the updated .jar and use reload.

    It locks the file even if the plugin fails to load.
     
  2. Offline

    Plague

    Looks like the file is still open, which for unknown reasons is a big problem for Windows, whoever in MS made the architecture this way should hang for it...
     
  3. Offline

    Edward Hand

    Solution: get linux.
     
  4. Offline

    Vaupell

    Real Constructive way to help out.. /sarcasm..

    Open task manager if you have acces, sometimes ewen after you close server
    it runs in background as JAW or JAVA.
     
  5. Offline

    Plague

    Finally I'm not the one who has to be hard on the OP :D

    Sometimes it just works renaming the file and then deleting afterwards, but that doesn't really change the issue here, that craftbukkit leaves the plugins open...
     
  6. Offline

    Raphfrk

    That isn't an unreasonable decision. You open the file and it write locks it.

    You close it and it releases the lock. It is like thread syncing.

    This means that you don't have to worry about someone editing the file while you read/write it.

    Anyway, I looked at the changes, and can't see what change it cause it to be left open.
     
  7. Offline

    Plague

    There is exlusive open for write locking, no need to enforce it.
    Also the main problem is you cannot DELETE open files, which is why he should hang.
     
  8. Offline

    Raphfrk

    I want to be able to just overwrite the file. It used to work with previous versions of craftbukkit.
    --- merged: Feb 20, 2011 4:32 PM ---
    Hmm, seems it works again now, not sure what the issue was.

    Cygwin is able to overwrite the files again.
     
  9. Offline

    Dinnerbone Bukkit Team Member

    It's a java issue.
     
Thread Status:
Not open for further replies.

Share This Page