Code Monkey home page Code Monkey logo

eclipse-jcms-plugin-tools's People

Contributors

castorls avatar dependabot[bot] avatar lkouam avatar lxtuong avatar olivierjaquemet avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eclipse-jcms-plugin-tools's Issues

Exception FilesCouldBeMissed Eclipse Neon 2

Version 2.0.3 Beta
Eclipse neon 2

I have an recurring exception with Neon 2 with my plugins.

!ENTRY org.eclipse.core.jobs 4 2 2017-02-23 11:53:00.191
!MESSAGE An internal error occurred during: "Check preview sync".
!STACK 0
java.lang.NullPointerException
at com.jalios.ejpt.sync.strategy.FilesCouldBeMissed.getFilesInWebappPublicPluginDirectory(FilesCouldBeMissed.java:60)
at com.jalios.ejpt.sync.strategy.FilesCouldBeMissed.run(FilesCouldBeMissed.java:44)
at com.jalios.ejpt.sync.strategy.GlobalSyncStrategy.run(GlobalSyncStrategy.java:40)
at com.jalios.ejpt.jobs.Util.previewSync(Util.java:37)
at com.jalios.ejpt.jobs.SyncJob.run(SyncJob.java:31)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Plugin tree :
axeltiscoreplugin_et__log

This exception appears since I use Neon 2, and randomly (I think).

FilesCouldBeMissed Exception if the current plugin override a private file of one other plugin

Version 2.0.3 Beta
Eclipse neon

If i have one plugin named Plugin1, who override Plugin2 private file we have an exception :

!MESSAGE An internal error occurred during: "Check preview sync".
!STACK 0
java.lang.NullPointerException
    at com.jalios.ejpt.sync.strategy.FilesCouldBeMissed.getFilesInWebappPublicPluginDirectory(FilesCouldBeMissed.java:60)
    at com.jalios.ejpt.sync.strategy.FilesCouldBeMissed.run(FilesCouldBeMissed.java:44)
    at com.jalios.ejpt.sync.strategy.GlobalSyncStrategy.run(GlobalSyncStrategy.java:40)
    at com.jalios.ejpt.jobs.Util.previewSync(Util.java:37)
    at com.jalios.ejpt.jobs.SyncJob.run(SyncJob.java:31)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Directory tree :

WEB-INF/plugins/Plugin1/plugin.xml
WEB-INF/plugins/Plugin1/properties/language/fr.prop
WEB-INF/plugins/Plugin1/properties/language/en.prop
WEB-INF/plugins/Plugin1/properties/plugin.prop
WEB-INF/plugins/Plugin2/properties/fr.prop

WEB-INF/plugins/Plugin1/plugin.xml contains the webapp declaration of "WEB-INF/plugins/Plugin2/properties/fr.prop"

If i remove "WEB-INF/plugins/Plugin2/properties/fr.prop" it's work

Allow to sync unittests while they are not declared in plugin.xml

Since sync is based on plugin.xml parsing, unittests are no longer synced.
Allow to sync unittests (or any other directory, or files) between plugin and webapp, event if it is not declared in plugin.xml.
Such a directory could be voluntary not declared for it NOT to be packaged in a plugin.zip.

Workaround :

  • declare package unittests in plugin.xml lusing:
  • preview and perform Sync (unittests are synced)
  • remove package declaration

Improve duplicated ignored files

Ignored files can be declared given their filename only (not the path, neither relative, or absolute).
If multiple files have same name in the plugin, they will all be ommited. (ex: thumbnail.jpg for differents resources).

Improvement: make the declaration "unique"

Exemple of current declaration:

excluded.files = thumbnail.jpg

Proposed declaration:

excluded.files = **/images/**/thumbnail.jpg

Relates to: #4

Improve change status

For local change, use label "LocalChange"
For SVN Server change, use label "RemoteChange"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.