/intellij-ppimport

Plugin to import single or multiple files to an endpoint by means of HTTP PUT. Originally created to import content to Atex Polopoly, but I can imagine other apllications as well.

Primary LanguageJavaApache License 2.0Apache-2.0

Polopoly Importer Plugin for IntelliJ

Based on Marc Viane's work https://github.com/mavicon/intellij-ppimport and inspiration from Johan Rylander's Atex Polopoly plugin for IntelliJ https://github.com/jrylander/PolopolyIntelliJPlugin.

This plugin is written to simplify import of content XML files into the Polopoly CMS.

Key features

  • import a single file or import multiple file selections
  • import not only from the editor, but also from Project Tool window and the Changes Tool window
  • multiple files can be imported in bulk (as a jar) (specific Polopoly functionality)
  • specify multiple targets (e.g. local, dev, staging and production) directly accessible from the context menu
  • specify file extensions to import
  • protect against accidental imports by asking for a confirmation (per target configurable)
  • search and replace specific strings in the content before importing

This plugin stores the configuration at the IntelliJ application level, so they are available in all IntelliJ projects. This is different from Johan or Marc's plugin, which store this information separately for each project.

Change log

1.5.2 Support for unicode (UTF-8) conversion
1.5.1 Patch storage configuration for Intellij 2016
1.5 Fixed charset conversion issues
1.4 Fixed NullPointerException on IDEA 12
1.3 Fixed issue with Guava deprecating Closeables.closeQuietly in Guava 15
1.2 Fixed ArrayIndexOutOfBoundsException: 0 when there are no replacements.
1.1 Fixed configuration storage again.
1.0 First release on plugins.jetbrains.com
    Replaced StringReplaceReader under GPLv2 license with Swizzle Stream library under Apache v2 license.
0.9 Added ability to find and replace strings in the imported data.
0.8 Fixed the import progress.
    Fixed the import of files in the VCS Changes.
0.7 Added ability to Cancel the background task.
    Added import actions to the VCS Changes popup menu.
0.6 Restore "Import finished" message.
    Do progress update for a single file.
0.5 Show progress dialog.
    Changed "Import successful" to "Import finished".
0.4 Recurse files in alphabetic order.
    Less notifications about successful imports.
0.3 Do imports asynchronously to avoid hanging IDE.
0.2 Fixed configuration storage.
0.1 Initial release.

Installing

Requires IntelliJ IDEA 11 or later.

Download the polopoly-import-1.5.2.jar from the distributable folder.

  1. Start IntelliJ IDEA.
  2. Open the plugin manager dialog (Menu: File > Settings > Plugins)
  3. Click Install plugin from disk button to open the Choose Plugin file dialog.
  4. Select the polopoly-import-1.5.2.jar file and click OK to close the dialog.
  5. Click OK to close the Settings dialog.
  6. Restart IntelliJ IDEA.

Libraries

This software uses parts of http://www.eli.sdsu.edu/java-SDSU/ distributed under Apache License 2.0.

Copyright and license

Copyright 2016 Wim Symons

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.