├── script ├── ESPlorer.bat ├── ESPlorer.sh ├── gpio.py └── test100lines.lua ├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ ├── maven-wrapper.properties │ └── MavenWrapperDownloader.java ├── src └── main │ ├── resources │ └── resources │ │ ├── lc.png │ │ ├── copy.png │ │ ├── cut.png │ │ ├── dump.png │ │ ├── edit.png │ │ ├── file.png │ │ ├── get.png │ │ ├── left.png │ │ ├── list.png │ │ ├── lua.png │ │ ├── move.png │ │ ├── ping.png │ │ ├── play.png │ │ ├── save.png │ │ ├── set.png │ │ ├── view.png │ │ ├── wifi.png │ │ ├── abort.png │ │ ├── backup.png │ │ ├── donate.gif │ │ ├── led_red.png │ │ ├── nodemcu.png │ │ ├── paste.png │ │ ├── paypal.png │ │ ├── redo1.png │ │ ├── refresh.png │ │ ├── rename.png │ │ ├── reset.png │ │ ├── script.png │ │ ├── trash.png │ │ ├── undo1.png │ │ ├── upload.png │ │ ├── wizard.png │ │ ├── zoom in.png │ │ ├── connect1.png │ │ ├── connect2.png │ │ ├── connect3.png │ │ ├── document.png │ │ ├── download.png │ │ ├── led_black.png │ │ ├── led_blue.png │ │ ├── led_green.png │ │ ├── led_grey.png │ │ ├── led_white.png │ │ ├── level up.png │ │ ├── refresh3.png │ │ ├── run_line.png │ │ ├── save_all.png │ │ ├── settings1.png │ │ ├── settings2.png │ │ ├── transmit.png │ │ ├── uploadLUA.png │ │ ├── zoom out.png │ │ ├── AlwaysOnTop.png │ │ ├── IoTmanager.png │ │ ├── aliexpress.png │ │ ├── disconnect1.png │ │ ├── disconnect3.png │ │ ├── donate-small.gif │ │ ├── file manager.png │ │ ├── file_remove.png │ │ ├── folder open.png │ │ ├── information.png │ │ ├── led_orange.png │ │ ├── led_yellow.png │ │ ├── micropython.png │ │ ├── script_send.png │ │ ├── script_start.png │ │ ├── search again.png │ │ ├── ESP8266-64x64.png │ │ ├── ESP8266-96x96.png │ │ ├── backup_delete.png │ │ ├── folder closed.png │ │ ├── script (edit).png │ │ ├── send_selected.png │ │ ├── server1_start.png │ │ ├── terminal_clear.png │ │ ├── web_server_start.png │ │ ├── file manager (delete).png │ │ ├── folder_open_document.png │ │ └── mnemonic.properties │ └── java │ └── ESPlorer │ └── pyFiler.java ├── .github ├── stale.yml └── workflows │ └── build.yml ├── README.md ├── pom.xml ├── mvnw.cmd ├── mvnw └── LICENSE.md /script/ESPlorer.bat: -------------------------------------------------------------------------------- 1 | java -jar ESPlorer.jar 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ESPlorer.Log 2 | ESPlorer.Log.lck 3 | .idea/ 4 | target/ 5 | *.iml 6 | nbactions.xml 7 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /src/main/resources/resources/lc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/lc.png -------------------------------------------------------------------------------- /src/main/resources/resources/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/copy.png -------------------------------------------------------------------------------- /src/main/resources/resources/cut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/cut.png -------------------------------------------------------------------------------- /src/main/resources/resources/dump.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/dump.png -------------------------------------------------------------------------------- /src/main/resources/resources/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/edit.png -------------------------------------------------------------------------------- /src/main/resources/resources/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/file.png -------------------------------------------------------------------------------- /src/main/resources/resources/get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/get.png -------------------------------------------------------------------------------- /src/main/resources/resources/left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/left.png -------------------------------------------------------------------------------- /src/main/resources/resources/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/list.png -------------------------------------------------------------------------------- /src/main/resources/resources/lua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/lua.png -------------------------------------------------------------------------------- /src/main/resources/resources/move.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/move.png -------------------------------------------------------------------------------- /src/main/resources/resources/ping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/ping.png -------------------------------------------------------------------------------- /src/main/resources/resources/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/play.png -------------------------------------------------------------------------------- /src/main/resources/resources/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/save.png -------------------------------------------------------------------------------- /src/main/resources/resources/set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/set.png -------------------------------------------------------------------------------- /src/main/resources/resources/view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/view.png -------------------------------------------------------------------------------- /src/main/resources/resources/wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/wifi.png -------------------------------------------------------------------------------- /src/main/resources/resources/abort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/abort.png -------------------------------------------------------------------------------- /src/main/resources/resources/backup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/backup.png -------------------------------------------------------------------------------- /src/main/resources/resources/donate.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/donate.gif -------------------------------------------------------------------------------- /src/main/resources/resources/led_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/led_red.png -------------------------------------------------------------------------------- /src/main/resources/resources/nodemcu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/nodemcu.png -------------------------------------------------------------------------------- /src/main/resources/resources/paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/paste.png -------------------------------------------------------------------------------- /src/main/resources/resources/paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/paypal.png -------------------------------------------------------------------------------- /src/main/resources/resources/redo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/redo1.png -------------------------------------------------------------------------------- /src/main/resources/resources/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/refresh.png -------------------------------------------------------------------------------- /src/main/resources/resources/rename.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/rename.png -------------------------------------------------------------------------------- /src/main/resources/resources/reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/reset.png -------------------------------------------------------------------------------- /src/main/resources/resources/script.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/script.png -------------------------------------------------------------------------------- /src/main/resources/resources/trash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/trash.png -------------------------------------------------------------------------------- /src/main/resources/resources/undo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/undo1.png -------------------------------------------------------------------------------- /src/main/resources/resources/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/upload.png -------------------------------------------------------------------------------- /src/main/resources/resources/wizard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/wizard.png -------------------------------------------------------------------------------- /src/main/resources/resources/zoom in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/zoom in.png -------------------------------------------------------------------------------- /src/main/resources/resources/connect1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/connect1.png -------------------------------------------------------------------------------- /src/main/resources/resources/connect2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/connect2.png -------------------------------------------------------------------------------- /src/main/resources/resources/connect3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/connect3.png -------------------------------------------------------------------------------- /src/main/resources/resources/document.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/document.png -------------------------------------------------------------------------------- /src/main/resources/resources/download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/download.png -------------------------------------------------------------------------------- /src/main/resources/resources/led_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/led_black.png -------------------------------------------------------------------------------- /src/main/resources/resources/led_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/led_blue.png -------------------------------------------------------------------------------- /src/main/resources/resources/led_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/led_green.png -------------------------------------------------------------------------------- /src/main/resources/resources/led_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/led_grey.png -------------------------------------------------------------------------------- /src/main/resources/resources/led_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/led_white.png -------------------------------------------------------------------------------- /src/main/resources/resources/level up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/level up.png -------------------------------------------------------------------------------- /src/main/resources/resources/refresh3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/refresh3.png -------------------------------------------------------------------------------- /src/main/resources/resources/run_line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/run_line.png -------------------------------------------------------------------------------- /src/main/resources/resources/save_all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/save_all.png -------------------------------------------------------------------------------- /src/main/resources/resources/settings1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/settings1.png -------------------------------------------------------------------------------- /src/main/resources/resources/settings2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/settings2.png -------------------------------------------------------------------------------- /src/main/resources/resources/transmit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/transmit.png -------------------------------------------------------------------------------- /src/main/resources/resources/uploadLUA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/uploadLUA.png -------------------------------------------------------------------------------- /src/main/resources/resources/zoom out.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/zoom out.png -------------------------------------------------------------------------------- /src/main/resources/resources/AlwaysOnTop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/AlwaysOnTop.png -------------------------------------------------------------------------------- /src/main/resources/resources/IoTmanager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/IoTmanager.png -------------------------------------------------------------------------------- /src/main/resources/resources/aliexpress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/aliexpress.png -------------------------------------------------------------------------------- /src/main/resources/resources/disconnect1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/disconnect1.png -------------------------------------------------------------------------------- /src/main/resources/resources/disconnect3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/disconnect3.png -------------------------------------------------------------------------------- /src/main/resources/resources/donate-small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/donate-small.gif -------------------------------------------------------------------------------- /src/main/resources/resources/file manager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/file manager.png -------------------------------------------------------------------------------- /src/main/resources/resources/file_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/file_remove.png -------------------------------------------------------------------------------- /src/main/resources/resources/folder open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/folder open.png -------------------------------------------------------------------------------- /src/main/resources/resources/information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/information.png -------------------------------------------------------------------------------- /src/main/resources/resources/led_orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/led_orange.png -------------------------------------------------------------------------------- /src/main/resources/resources/led_yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/led_yellow.png -------------------------------------------------------------------------------- /src/main/resources/resources/micropython.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/micropython.png -------------------------------------------------------------------------------- /src/main/resources/resources/script_send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/script_send.png -------------------------------------------------------------------------------- /src/main/resources/resources/script_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/script_start.png -------------------------------------------------------------------------------- /src/main/resources/resources/search again.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/search again.png -------------------------------------------------------------------------------- /src/main/resources/resources/ESP8266-64x64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/ESP8266-64x64.png -------------------------------------------------------------------------------- /src/main/resources/resources/ESP8266-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/ESP8266-96x96.png -------------------------------------------------------------------------------- /src/main/resources/resources/backup_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/backup_delete.png -------------------------------------------------------------------------------- /src/main/resources/resources/folder closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/folder closed.png -------------------------------------------------------------------------------- /src/main/resources/resources/script (edit).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/script (edit).png -------------------------------------------------------------------------------- /src/main/resources/resources/send_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/send_selected.png -------------------------------------------------------------------------------- /src/main/resources/resources/server1_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/server1_start.png -------------------------------------------------------------------------------- /src/main/resources/resources/terminal_clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/terminal_clear.png -------------------------------------------------------------------------------- /src/main/resources/resources/web_server_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/web_server_start.png -------------------------------------------------------------------------------- /src/main/resources/resources/file manager (delete).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/file manager (delete).png -------------------------------------------------------------------------------- /src/main/resources/resources/folder_open_document.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4refr0nt/ESPlorer/HEAD/src/main/resources/resources/folder_open_document.png -------------------------------------------------------------------------------- /script/ESPlorer.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Make this file executable first: "chmod +x ESPlorer.sh", then double-click on it 4 | 5 | cd $(dirname $(realpath $0)) 6 | java -jar ESPlorer.jar 7 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /script/gpio.py: -------------------------------------------------------------------------------- 1 | import pyb 2 | import time 3 | pin = pyb.Pin(2, pyb.Pin.OUT) 4 | for i in range(4): 5 | print('LED ON') 6 | pin.value(0) 7 | time.sleep(1) 8 | print('LED OFF') 9 | pin.value(1) 10 | time.sleep(1) 11 | print('iteration done.') 12 | print("All done.") 13 | -------------------------------------------------------------------------------- /src/main/resources/resources/mnemonic.properties: -------------------------------------------------------------------------------- 1 | ButtonSnippet0=VK_BACK_QUOTE 2 | ButtonSnippet1=KeyEvent.VK_1 3 | ButtonSnippet2=KeyEvent.VK_2 4 | ButtonSnippet3=KeyEvent.VK_3 5 | ButtonSnippet4=KeyEvent.VK_4 6 | ButtonSnippet5=KeyEvent.VK_5 7 | ButtonSnippet6=KeyEvent.VK_6 8 | ButtonSnippet7=KeyEvent.VK_7 9 | ButtonSnippet8=KeyEvent.VK_8 10 | ButtonSnippet9=KeyEvent.VK_9 11 | ButtonSnippet10=KeyEvent.VK_0 12 | ButtonSnippet11=KeyEvent.VK_MINUS 13 | ButtonSnippet12=KeyEvent.VK_EQUALS 14 | ButtonSnippet13=KeyEvent.VK_BACK_SLASH 15 | ButtonSnippet14=KeyEvent.VK_BACK_SPACE 16 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 60 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 7 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: 7 | - pinned 8 | - security 9 | # Label to use when marking an issue as stale 10 | staleLabel: wontfix 11 | # Comment to post when marking an issue as stale. Set to `false` to disable 12 | markComment: > 13 | This issue has been automatically marked as stale because it has not had 14 | recent activity. It will be closed if no further activity occurs. Thank you 15 | for your contributions. 16 | # Comment to post when closing a stale issue. Set to `false` to disable 17 | closeComment: true 18 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: build 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v2 10 | - name: Set up JDK 8 11 | uses: actions/setup-java@v1 12 | with: 13 | java-version: 8 14 | - name: Cache Maven packages 15 | uses: actions/cache@v2 16 | with: 17 | path: ~/.m2 18 | key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} 19 | restore-keys: ${{ runner.os }}-m2 20 | - name: Build with Maven 21 | run: ./mvnw -B package 22 | - name: Prepare distribution 23 | run: mkdir -p dist/ESPlorer && mv target/ESPlorer.jar script/ESPlorer.{bat,sh} dist/ESPlorer 24 | - uses: actions/upload-artifact@v2 25 | with: 26 | name: ESPlorer 27 | path: dist/ 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ESPlorer 2 | 3 | [![Build Actions Status](https://github.com/4refr0nt/ESPlorer/workflows/build/badge.svg)](https://github.com/4refr0nt/ESPlorer/actions) [![Join the chat at https://gitter.im/4refr0nt/ESPlorer](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/4refr0nt/ESPlorer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 4 | #### Integrated Development Environment (IDE) for ESP8266 developers 5 | 6 | ### Package Description 7 | The essential multiplatforms tools for any ESP8266 developer from luatool author’s, including a LUA for NodeMCU and MicroPython. Also, all AT commands are supported. 8 | 9 | Requires Java 8 or above. 10 | Download the latest and greatest one from [Oracle website](https://www.oracle.com/java/technologies/javase-downloads.html). 11 | 12 | ### Supported platforms 13 | - Windows(x86, x86-64) 14 | - Linux(x86, x86-64, ARM soft & hard float) 15 | - Solaris(x86, x86-64) 16 | - Mac OS X(x86, x86-64, PPC, PPC64) 17 | 18 | ### Detailed features list 19 | - Syntax highlighting LUA and Python code 20 | - Code editor color themes: default, dark, Eclipse, IDEA, Visual Studio 21 | - Undo/Redo editors features 22 | - Code Autocomplete (Ctrl+Space) 23 | - Smart send data to ESP8266 (without dumb send with fixed line delay), check correct answer from ESP8266 after every line. 24 | - Code snippets 25 | - Detailed logging 26 | - and more, more more… 27 | 28 | ### Discuss 29 | * [English esp8266.com](http://www.esp8266.com/viewtopic.php?f=22&t=882) 30 | * [Russian esp8266.ru](http://esp8266.ru/forum/threads/esplorer.34/) 31 | 32 | ### Home Page 33 | [http://esp8266.ru/ESPlorer/](http://esp8266.ru/esplorer/) 34 | 35 | ### Latest binaries download 36 | Check out [Releases](https://github.com/4refr0nt/ESPlorer/releases) 37 | 38 | ### Build from sources 39 | #### Windows 40 | ``` 41 | mvnw.cmd clean package 42 | ``` 43 | #### Linux / Mac OS 44 | ``` 45 | ./mvnw clean package 46 | ``` 47 | The build creates all-in-one executable `ESPlorer.jar` in the `target` folder. 48 | Then run the app: 49 | ``` 50 | java -jar target/ESPlorer.jar 51 | ``` 52 | -------------------------------------------------------------------------------- /src/main/java/ESPlorer/pyFiler.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * @author 4refr0nt 4 | */ 5 | package ESPlorer; 6 | 7 | import static ESPlorer.ESPlorer.sendBuf; 8 | import java.util.ArrayList; 9 | 10 | public class pyFiler { 11 | 12 | private static String dir = ""; 13 | 14 | public static final int OK = 0; 15 | public static final int ERROR_COMMUNICATION = 1; 16 | 17 | public pyFiler() { 18 | 19 | } 20 | 21 | public String ListDir() { 22 | return ""; 23 | } 24 | 25 | public boolean Put(String ft, String[] s) { 26 | 27 | boolean success = true; 28 | sendBuf = new ArrayList(); 29 | 30 | sendBuf.add("f=open('" + escape(ft) + "','w')"); 31 | for (String subs : s) { 32 | sendBuf.add("f.write('" + escape(subs) + "\\n')"); 33 | } 34 | sendBuf.add("f.close()"); 35 | 36 | return success; 37 | } 38 | 39 | public boolean Get() { 40 | return false; 41 | } 42 | 43 | public boolean Rename() { 44 | return false; 45 | } 46 | 47 | public int Length() { 48 | return 0; 49 | } 50 | 51 | public String cd() { 52 | return dir; 53 | } 54 | 55 | public String pwd() { 56 | return dir; 57 | } 58 | 59 | public String GetParent() { 60 | return ""; 61 | } 62 | 63 | public boolean isExist() { 64 | return false; 65 | } 66 | 67 | public String escape(String str) { 68 | char ch; 69 | StringBuilder buf = new StringBuilder(str.length() * 2); 70 | int intValue; 71 | 72 | for (int i = 0, l = str.length(); i < l; ++i) { 73 | 74 | ch = str.charAt(i); 75 | if (ch == '"') { 76 | //intValue = ch; 77 | buf.append("\\"); 78 | //buf.append(ch); 79 | } else if (ch == '\'') { 80 | intValue = ch; 81 | buf.append("\\"); 82 | //buf.append(intValue); 83 | // } else { 84 | } 85 | buf.append(ch); 86 | } 87 | return buf.toString(); 88 | } // escape 89 | } // pyFiler 90 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 4.0.0 6 | 7 | com.4refr0nt.esplorer 8 | esplorer 9 | 1.0-SNAPSHOT 10 | 11 | ESPlorer 12 | https://esp8266.ru/esplorer/ 13 | ESPlorer - Integrated Development Environment (IDE) for ESP8266 developers 14 | 15 | 16 | UTF-8 17 | 1.8 18 | 1.8 19 | 20 | 21 | 22 | 23 | io.github.java-native 24 | jssc 25 | 2.9.4 26 | 27 | 28 | com.fifesoft 29 | rsyntaxtextarea 30 | 3.1.1 31 | 32 | 33 | com.fifesoft 34 | autocomplete 35 | 3.1.0 36 | 37 | 38 | org.jdesktop 39 | beansbinding 40 | 1.2.1 41 | 42 | 43 | org.netbeans.external 44 | AbsoluteLayout 45 | RELEASE121 46 | 47 | 48 | 49 | 50 | ESPlorer 51 | 52 | 53 | 54 | 55 | 56 | maven-clean-plugin 57 | 3.1.0 58 | 59 | 60 | maven-resources-plugin 61 | 3.0.2 62 | 63 | 64 | maven-compiler-plugin 65 | 3.8.0 66 | 67 | 68 | maven-surefire-plugin 69 | 2.22.1 70 | 71 | 72 | maven-jar-plugin 73 | 3.0.2 74 | 75 | 76 | 77 | 78 | 79 | 80 | org.springframework.boot 81 | spring-boot-maven-plugin 82 | 2.3.2.RELEASE 83 | 84 | 85 | 86 | repackage 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /script/test100lines.lua: -------------------------------------------------------------------------------- 1 | print("This is line number 1") 2 | print("This is line number 2") 3 | print("This is line number 3") 4 | print("This is line number 4") 5 | print("This is line number 5") 6 | print("This is line number 6") 7 | print("This is line number 7") 8 | print("This is line number 8") 9 | print("This is line number 9") 10 | print("This is line number 10") 11 | print("This is line number 11") 12 | print("This is line number 12") 13 | print("This is line number 13") 14 | print("This is line number 14") 15 | print("This is line number 15") 16 | print("This is line number 16") 17 | print("This is line number 17") 18 | print("This is line number 18") 19 | print("This is line number 19") 20 | print("This is line number 20") 21 | print("This is line number 21") 22 | print("This is line number 22") 23 | print("This is line number 23") 24 | print("This is line number 24") 25 | print("This is line number 25") 26 | print("This is line number 26") 27 | print("This is line number 27") 28 | print("This is line number 28") 29 | print("This is line number 29") 30 | print("This is line number 30") 31 | print("This is line number 31") 32 | print("This is line number 32") 33 | print("This is line number 33") 34 | print("This is line number 34") 35 | print("This is line number 35") 36 | print("This is line number 36") 37 | print("This is line number 37") 38 | print("This is line number 38") 39 | print("This is line number 39") 40 | print("This is line number 40") 41 | print("This is line number 41") 42 | print("This is line number 42") 43 | print("This is line number 43") 44 | print("This is line number 44") 45 | print("This is line number 45") 46 | print("This is line number 46") 47 | print("This is line number 47") 48 | print("This is line number 48") 49 | print("This is line number 49") 50 | print("This is line number 50") 51 | print("This is line number 51") 52 | print("This is line number 52") 53 | print("This is line number 53") 54 | print("This is line number 54") 55 | print("This is line number 55") 56 | print("This is line number 56") 57 | print("This is line number 57") 58 | print("This is line number 58") 59 | print("This is line number 59") 60 | print("This is line number 60") 61 | print("This is line number 61") 62 | print("This is line number 62") 63 | print("This is line number 63") 64 | print("This is line number 64") 65 | print("This is line number 65") 66 | print("This is line number 66") 67 | print("This is line number 67") 68 | print("This is line number 68") 69 | print("This is line number 69") 70 | print("This is line number 70") 71 | print("This is line number 71") 72 | print("This is line number 72") 73 | print("This is line number 73") 74 | print("This is line number 74") 75 | print("This is line number 75") 76 | print("This is line number 76") 77 | print("This is line number 77") 78 | print("This is line number 78") 79 | print("This is line number 79") 80 | print("This is line number 80") 81 | print("This is line number 81") 82 | print("This is line number 82") 83 | print("This is line number 83") 84 | print("This is line number 84") 85 | print("This is line number 85") 86 | print("This is line number 86") 87 | print("This is line number 87") 88 | print("This is line number 88") 89 | print("This is line number 89") 90 | print("This is line number 90") 91 | print("This is line number 91") 92 | print("This is line number 92") 93 | print("This is line number 93") 94 | print("This is line number 94") 95 | print("This is line number 95") 96 | print("This is line number 96") 97 | print("This is line number 97") 98 | print("This is line number 98") 99 | print("This is line number 99") 100 | print("This is line number 100") 101 | -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-present the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | import java.net.*; 17 | import java.io.*; 18 | import java.nio.channels.*; 19 | import java.util.Properties; 20 | 21 | public class MavenWrapperDownloader { 22 | 23 | private static final String WRAPPER_VERSION = "0.5.6"; 24 | /** 25 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. 26 | */ 27 | private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" 28 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar"; 29 | 30 | /** 31 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to 32 | * use instead of the default one. 33 | */ 34 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH = 35 | ".mvn/wrapper/maven-wrapper.properties"; 36 | 37 | /** 38 | * Path where the maven-wrapper.jar will be saved to. 39 | */ 40 | private static final String MAVEN_WRAPPER_JAR_PATH = 41 | ".mvn/wrapper/maven-wrapper.jar"; 42 | 43 | /** 44 | * Name of the property which should be used to override the default download url for the wrapper. 45 | */ 46 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; 47 | 48 | public static void main(String args[]) { 49 | System.out.println("- Downloader started"); 50 | File baseDirectory = new File(args[0]); 51 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); 52 | 53 | // If the maven-wrapper.properties exists, read it and check if it contains a custom 54 | // wrapperUrl parameter. 55 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); 56 | String url = DEFAULT_DOWNLOAD_URL; 57 | if(mavenWrapperPropertyFile.exists()) { 58 | FileInputStream mavenWrapperPropertyFileInputStream = null; 59 | try { 60 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); 61 | Properties mavenWrapperProperties = new Properties(); 62 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); 63 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); 64 | } catch (IOException e) { 65 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); 66 | } finally { 67 | try { 68 | if(mavenWrapperPropertyFileInputStream != null) { 69 | mavenWrapperPropertyFileInputStream.close(); 70 | } 71 | } catch (IOException e) { 72 | // Ignore ... 73 | } 74 | } 75 | } 76 | System.out.println("- Downloading from: " + url); 77 | 78 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); 79 | if(!outputFile.getParentFile().exists()) { 80 | if(!outputFile.getParentFile().mkdirs()) { 81 | System.out.println( 82 | "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"); 83 | } 84 | } 85 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); 86 | try { 87 | downloadFileFromURL(url, outputFile); 88 | System.out.println("Done"); 89 | System.exit(0); 90 | } catch (Throwable e) { 91 | System.out.println("- Error downloading"); 92 | e.printStackTrace(); 93 | System.exit(1); 94 | } 95 | } 96 | 97 | private static void downloadFileFromURL(String urlString, File destination) throws Exception { 98 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) { 99 | String username = System.getenv("MVNW_USERNAME"); 100 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray(); 101 | Authenticator.setDefault(new Authenticator() { 102 | @Override 103 | protected PasswordAuthentication getPasswordAuthentication() { 104 | return new PasswordAuthentication(username, password); 105 | } 106 | }); 107 | } 108 | URL website = new URL(urlString); 109 | ReadableByteChannel rbc; 110 | rbc = Channels.newChannel(website.openStream()); 111 | FileOutputStream fos = new FileOutputStream(destination); 112 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); 113 | fos.close(); 114 | rbc.close(); 115 | } 116 | 117 | } 118 | -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- 1 | @REM ---------------------------------------------------------------------------- 2 | @REM Licensed to the Apache Software Foundation (ASF) under one 3 | @REM or more contributor license agreements. See the NOTICE file 4 | @REM distributed with this work for additional information 5 | @REM regarding copyright ownership. The ASF licenses this file 6 | @REM to you under the Apache License, Version 2.0 (the 7 | @REM "License"); you may not use this file except in compliance 8 | @REM with the License. You may obtain a copy of the License at 9 | @REM 10 | @REM http://www.apache.org/licenses/LICENSE-2.0 11 | @REM 12 | @REM Unless required by applicable law or agreed to in writing, 13 | @REM software distributed under the License is distributed on an 14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | @REM KIND, either express or implied. See the License for the 16 | @REM specific language governing permissions and limitations 17 | @REM under the License. 18 | @REM ---------------------------------------------------------------------------- 19 | 20 | @REM ---------------------------------------------------------------------------- 21 | @REM Maven Start Up Batch script 22 | @REM 23 | @REM Required ENV vars: 24 | @REM JAVA_HOME - location of a JDK home dir 25 | @REM 26 | @REM Optional ENV vars 27 | @REM M2_HOME - location of maven2's installed home dir 28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands 29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending 30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven 31 | @REM e.g. to debug Maven itself, use 32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files 34 | @REM ---------------------------------------------------------------------------- 35 | 36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' 37 | @echo off 38 | @REM set title of command window 39 | title %0 40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' 41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% 42 | 43 | @REM set %HOME% to equivalent of $HOME 44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") 45 | 46 | @REM Execute a user defined script before this one 47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre 48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending 49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" 50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" 51 | :skipRcPre 52 | 53 | @setlocal 54 | 55 | set ERROR_CODE=0 56 | 57 | @REM To isolate internal variables from possible post scripts, we use another setlocal 58 | @setlocal 59 | 60 | @REM ==== START VALIDATION ==== 61 | if not "%JAVA_HOME%" == "" goto OkJHome 62 | 63 | echo. 64 | echo Error: JAVA_HOME not found in your environment. >&2 65 | echo Please set the JAVA_HOME variable in your environment to match the >&2 66 | echo location of your Java installation. >&2 67 | echo. 68 | goto error 69 | 70 | :OkJHome 71 | if exist "%JAVA_HOME%\bin\java.exe" goto init 72 | 73 | echo. 74 | echo Error: JAVA_HOME is set to an invalid directory. >&2 75 | echo JAVA_HOME = "%JAVA_HOME%" >&2 76 | echo Please set the JAVA_HOME variable in your environment to match the >&2 77 | echo location of your Java installation. >&2 78 | echo. 79 | goto error 80 | 81 | @REM ==== END VALIDATION ==== 82 | 83 | :init 84 | 85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". 86 | @REM Fallback to current working directory if not found. 87 | 88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% 89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir 90 | 91 | set EXEC_DIR=%CD% 92 | set WDIR=%EXEC_DIR% 93 | :findBaseDir 94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound 95 | cd .. 96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound 97 | set WDIR=%CD% 98 | goto findBaseDir 99 | 100 | :baseDirFound 101 | set MAVEN_PROJECTBASEDIR=%WDIR% 102 | cd "%EXEC_DIR%" 103 | goto endDetectBaseDir 104 | 105 | :baseDirNotFound 106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR% 107 | cd "%EXEC_DIR%" 108 | 109 | :endDetectBaseDir 110 | 111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig 112 | 113 | @setlocal EnableExtensions EnableDelayedExpansion 114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a 115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% 116 | 117 | :endReadAdditionalConfig 118 | 119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" 120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" 121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 122 | 123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 124 | 125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( 126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B 127 | ) 128 | 129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data. 131 | if exist %WRAPPER_JAR% ( 132 | if "%MVNW_VERBOSE%" == "true" ( 133 | echo Found %WRAPPER_JAR% 134 | ) 135 | ) else ( 136 | if not "%MVNW_REPOURL%" == "" ( 137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 138 | ) 139 | if "%MVNW_VERBOSE%" == "true" ( 140 | echo Couldn't find %WRAPPER_JAR%, downloading it ... 141 | echo Downloading from: %DOWNLOAD_URL% 142 | ) 143 | 144 | powershell -Command "&{"^ 145 | "$webclient = new-object System.Net.WebClient;"^ 146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ 147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ 148 | "}"^ 149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ 150 | "}" 151 | if "%MVNW_VERBOSE%" == "true" ( 152 | echo Finished downloading %WRAPPER_JAR% 153 | ) 154 | ) 155 | @REM End of extension 156 | 157 | @REM Provide a "standardized" way to retrieve the CLI args that will 158 | @REM work with both Windows and non-Windows executions. 159 | set MAVEN_CMD_LINE_ARGS=%* 160 | 161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* 162 | if ERRORLEVEL 1 goto error 163 | goto end 164 | 165 | :error 166 | set ERROR_CODE=1 167 | 168 | :end 169 | @endlocal & set ERROR_CODE=%ERROR_CODE% 170 | 171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost 172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending 173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" 174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" 175 | :skipRcPost 176 | 177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' 178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause 179 | 180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% 181 | 182 | exit /B %ERROR_CODE% 183 | -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ---------------------------------------------------------------------------- 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # ---------------------------------------------------------------------------- 20 | 21 | # ---------------------------------------------------------------------------- 22 | # Maven Start Up Batch script 23 | # 24 | # Required ENV vars: 25 | # ------------------ 26 | # JAVA_HOME - location of a JDK home dir 27 | # 28 | # Optional ENV vars 29 | # ----------------- 30 | # M2_HOME - location of maven2's installed home dir 31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven 32 | # e.g. to debug Maven itself, use 33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files 35 | # ---------------------------------------------------------------------------- 36 | 37 | if [ -z "$MAVEN_SKIP_RC" ] ; then 38 | 39 | if [ -f /etc/mavenrc ] ; then 40 | . /etc/mavenrc 41 | fi 42 | 43 | if [ -f "$HOME/.mavenrc" ] ; then 44 | . "$HOME/.mavenrc" 45 | fi 46 | 47 | fi 48 | 49 | # OS specific support. $var _must_ be set to either true or false. 50 | cygwin=false; 51 | darwin=false; 52 | mingw=false 53 | case "`uname`" in 54 | CYGWIN*) cygwin=true ;; 55 | MINGW*) mingw=true;; 56 | Darwin*) darwin=true 57 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home 58 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html 59 | if [ -z "$JAVA_HOME" ]; then 60 | if [ -x "/usr/libexec/java_home" ]; then 61 | export JAVA_HOME="`/usr/libexec/java_home`" 62 | else 63 | export JAVA_HOME="/Library/Java/Home" 64 | fi 65 | fi 66 | ;; 67 | esac 68 | 69 | if [ -z "$JAVA_HOME" ] ; then 70 | if [ -r /etc/gentoo-release ] ; then 71 | JAVA_HOME=`java-config --jre-home` 72 | fi 73 | fi 74 | 75 | if [ -z "$M2_HOME" ] ; then 76 | ## resolve links - $0 may be a link to maven's home 77 | PRG="$0" 78 | 79 | # need this for relative symlinks 80 | while [ -h "$PRG" ] ; do 81 | ls=`ls -ld "$PRG"` 82 | link=`expr "$ls" : '.*-> \(.*\)$'` 83 | if expr "$link" : '/.*' > /dev/null; then 84 | PRG="$link" 85 | else 86 | PRG="`dirname "$PRG"`/$link" 87 | fi 88 | done 89 | 90 | saveddir=`pwd` 91 | 92 | M2_HOME=`dirname "$PRG"`/.. 93 | 94 | # make it fully qualified 95 | M2_HOME=`cd "$M2_HOME" && pwd` 96 | 97 | cd "$saveddir" 98 | # echo Using m2 at $M2_HOME 99 | fi 100 | 101 | # For Cygwin, ensure paths are in UNIX format before anything is touched 102 | if $cygwin ; then 103 | [ -n "$M2_HOME" ] && 104 | M2_HOME=`cygpath --unix "$M2_HOME"` 105 | [ -n "$JAVA_HOME" ] && 106 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 107 | [ -n "$CLASSPATH" ] && 108 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"` 109 | fi 110 | 111 | # For Mingw, ensure paths are in UNIX format before anything is touched 112 | if $mingw ; then 113 | [ -n "$M2_HOME" ] && 114 | M2_HOME="`(cd "$M2_HOME"; pwd)`" 115 | [ -n "$JAVA_HOME" ] && 116 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 117 | fi 118 | 119 | if [ -z "$JAVA_HOME" ]; then 120 | javaExecutable="`which javac`" 121 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then 122 | # readlink(1) is not available as standard on Solaris 10. 123 | readLink=`which readlink` 124 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then 125 | if $darwin ; then 126 | javaHome="`dirname \"$javaExecutable\"`" 127 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" 128 | else 129 | javaExecutable="`readlink -f \"$javaExecutable\"`" 130 | fi 131 | javaHome="`dirname \"$javaExecutable\"`" 132 | javaHome=`expr "$javaHome" : '\(.*\)/bin'` 133 | JAVA_HOME="$javaHome" 134 | export JAVA_HOME 135 | fi 136 | fi 137 | fi 138 | 139 | if [ -z "$JAVACMD" ] ; then 140 | if [ -n "$JAVA_HOME" ] ; then 141 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 142 | # IBM's JDK on AIX uses strange locations for the executables 143 | JAVACMD="$JAVA_HOME/jre/sh/java" 144 | else 145 | JAVACMD="$JAVA_HOME/bin/java" 146 | fi 147 | else 148 | JAVACMD="`which java`" 149 | fi 150 | fi 151 | 152 | if [ ! -x "$JAVACMD" ] ; then 153 | echo "Error: JAVA_HOME is not defined correctly." >&2 154 | echo " We cannot execute $JAVACMD" >&2 155 | exit 1 156 | fi 157 | 158 | if [ -z "$JAVA_HOME" ] ; then 159 | echo "Warning: JAVA_HOME environment variable is not set." 160 | fi 161 | 162 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher 163 | 164 | # traverses directory structure from process work directory to filesystem root 165 | # first directory with .mvn subdirectory is considered project base directory 166 | find_maven_basedir() { 167 | 168 | if [ -z "$1" ] 169 | then 170 | echo "Path not specified to find_maven_basedir" 171 | return 1 172 | fi 173 | 174 | basedir="$1" 175 | wdir="$1" 176 | while [ "$wdir" != '/' ] ; do 177 | if [ -d "$wdir"/.mvn ] ; then 178 | basedir=$wdir 179 | break 180 | fi 181 | # workaround for JBEAP-8937 (on Solaris 10/Sparc) 182 | if [ -d "${wdir}" ]; then 183 | wdir=`cd "$wdir/.."; pwd` 184 | fi 185 | # end of workaround 186 | done 187 | echo "${basedir}" 188 | } 189 | 190 | # concatenates all lines of a file 191 | concat_lines() { 192 | if [ -f "$1" ]; then 193 | echo "$(tr -s '\n' ' ' < "$1")" 194 | fi 195 | } 196 | 197 | BASE_DIR=`find_maven_basedir "$(pwd)"` 198 | if [ -z "$BASE_DIR" ]; then 199 | exit 1; 200 | fi 201 | 202 | ########################################################################################## 203 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 204 | # This allows using the maven wrapper in projects that prohibit checking in binary data. 205 | ########################################################################################## 206 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then 207 | if [ "$MVNW_VERBOSE" = true ]; then 208 | echo "Found .mvn/wrapper/maven-wrapper.jar" 209 | fi 210 | else 211 | if [ "$MVNW_VERBOSE" = true ]; then 212 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." 213 | fi 214 | if [ -n "$MVNW_REPOURL" ]; then 215 | jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 216 | else 217 | jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 218 | fi 219 | while IFS="=" read key value; do 220 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;; 221 | esac 222 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" 223 | if [ "$MVNW_VERBOSE" = true ]; then 224 | echo "Downloading from: $jarUrl" 225 | fi 226 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" 227 | if $cygwin; then 228 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` 229 | fi 230 | 231 | if command -v wget > /dev/null; then 232 | if [ "$MVNW_VERBOSE" = true ]; then 233 | echo "Found wget ... using wget" 234 | fi 235 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 236 | wget "$jarUrl" -O "$wrapperJarPath" 237 | else 238 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" 239 | fi 240 | elif command -v curl > /dev/null; then 241 | if [ "$MVNW_VERBOSE" = true ]; then 242 | echo "Found curl ... using curl" 243 | fi 244 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 245 | curl -o "$wrapperJarPath" "$jarUrl" -f 246 | else 247 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f 248 | fi 249 | 250 | else 251 | if [ "$MVNW_VERBOSE" = true ]; then 252 | echo "Falling back to using Java to download" 253 | fi 254 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" 255 | # For Cygwin, switch paths to Windows format before running javac 256 | if $cygwin; then 257 | javaClass=`cygpath --path --windows "$javaClass"` 258 | fi 259 | if [ -e "$javaClass" ]; then 260 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 261 | if [ "$MVNW_VERBOSE" = true ]; then 262 | echo " - Compiling MavenWrapperDownloader.java ..." 263 | fi 264 | # Compiling the Java class 265 | ("$JAVA_HOME/bin/javac" "$javaClass") 266 | fi 267 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 268 | # Running the downloader 269 | if [ "$MVNW_VERBOSE" = true ]; then 270 | echo " - Running MavenWrapperDownloader.java ..." 271 | fi 272 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") 273 | fi 274 | fi 275 | fi 276 | fi 277 | ########################################################################################## 278 | # End of extension 279 | ########################################################################################## 280 | 281 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} 282 | if [ "$MVNW_VERBOSE" = true ]; then 283 | echo $MAVEN_PROJECTBASEDIR 284 | fi 285 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" 286 | 287 | # For Cygwin, switch paths to Windows format before running java 288 | if $cygwin; then 289 | [ -n "$M2_HOME" ] && 290 | M2_HOME=`cygpath --path --windows "$M2_HOME"` 291 | [ -n "$JAVA_HOME" ] && 292 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` 293 | [ -n "$CLASSPATH" ] && 294 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 295 | [ -n "$MAVEN_PROJECTBASEDIR" ] && 296 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` 297 | fi 298 | 299 | # Provide a "standardized" way to retrieve the CLI args that will 300 | # work with both Windows and non-Windows executions. 301 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" 302 | export MAVEN_CMD_LINE_ARGS 303 | 304 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 305 | 306 | exec "$JAVACMD" \ 307 | $MAVEN_OPTS \ 308 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ 309 | "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ 310 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" 311 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | --------------------------------------------------------------------------------