From 313b20a3b3ecd75afd46bea9e796e594354a32b7 Mon Sep 17 00:00:00 2001 From: marregui Date: Wed, 4 Sep 2024 14:29:17 +0200 Subject: [PATCH] Add first test (#23) * Add the first test and upgrade build.gradle to modern standards 1. gradle wrapper 2. ./gradlew run 3. manifest will look like Manifest-Version: 1.0 Main-Class: me.topchetoeu.jscript.runtime.SimpleRepl Build-Timestamp: 2024-09-04T10:44:35.990+0200 Build-Branch: ma/add-first-tests Build-Revision: 412edc0ebcf01c67403e446a102cd14871c8f678 Build-Jdk: 21.0.3 (Oracle Corporation 21.0.3+7-LTS-152) Build-Author: TopchetoEU 4. build/distributions contains a zip and a jar which contain jscript-0.9.41-beta.jar 5. unnecessary libs have been removed 6. gradle has been updated to 8.10 7. first test has been added * fix: revert removal of Jabel (for support of Java 11) --------- Co-authored-by: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> --- build.gradle | 82 +++++++++++++++--- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- settings.gradle | 8 ++ .../me/topchetoeu/jscript/common/Buffer.java | 0 .../topchetoeu/jscript/common/Filename.java | 0 .../jscript/common/FunctionBody.java | 0 .../jscript/common/Instruction.java | 0 .../topchetoeu/jscript/common/Location.java | 0 .../topchetoeu/jscript/common/Metadata.java | 0 .../topchetoeu/jscript/common/Operation.java | 0 .../me/topchetoeu/jscript/common/Reading.java | 0 .../topchetoeu/jscript/common/RefTracker.java | 0 .../jscript/common/ResultRunnable.java | 0 .../jscript/common/events/DataNotifier.java | 0 .../jscript/common/events/Notifier.java | 0 .../topchetoeu/jscript/common/json/JSON.java | 0 .../jscript/common/json/JSONElement.java | 0 .../jscript/common/json/JSONList.java | 0 .../jscript/common/json/JSONMap.java | 0 .../jscript/common/mapping/ConvertType.java | 0 .../jscript/common/mapping/FunctionMap.java | 0 .../compilation/AssignableStatement.java | 0 .../jscript/compilation/CompileResult.java | 0 .../compilation/CompoundStatement.java | 0 .../jscript/compilation/Statement.java | 0 .../compilation/ThrowSyntaxStatement.java | 0 .../compilation/VariableDeclareStatement.java | 0 .../compilation/control/BreakStatement.java | 0 .../control/ContinueStatement.java | 0 .../compilation/control/DebugStatement.java | 0 .../compilation/control/DeleteStatement.java | 0 .../compilation/control/DoWhileStatement.java | 0 .../compilation/control/ForInStatement.java | 0 .../compilation/control/ForOfStatement.java | 0 .../compilation/control/ForStatement.java | 0 .../compilation/control/IfStatement.java | 0 .../compilation/control/ReturnStatement.java | 0 .../compilation/control/SwitchStatement.java | 0 .../compilation/control/ThrowStatement.java | 0 .../compilation/control/TryStatement.java | 0 .../compilation/control/WhileStatement.java | 0 .../jscript/compilation/parsing/Operator.java | 0 .../jscript/compilation/parsing/ParseRes.java | 0 .../jscript/compilation/parsing/Parsing.java | 0 .../jscript/compilation/parsing/RawToken.java | 0 .../jscript/compilation/parsing/TestRes.java | 0 .../jscript/compilation/parsing/Token.java | 0 .../compilation/parsing/TokenType.java | 0 .../compilation/scope/LocalScopeRecord.java | 0 .../compilation/scope/ScopeRecord.java | 0 .../compilation/values/ArrayStatement.java | 0 .../compilation/values/CallStatement.java | 0 .../compilation/values/ChangeStatement.java | 0 .../compilation/values/ConstantStatement.java | 0 .../compilation/values/DiscardStatement.java | 0 .../compilation/values/FunctionStatement.java | 0 .../values/GlobalThisStatement.java | 0 .../values/IndexAssignStatement.java | 0 .../compilation/values/IndexStatement.java | 0 .../compilation/values/LazyAndStatement.java | 0 .../compilation/values/LazyOrStatement.java | 0 .../compilation/values/ObjectStatement.java | 0 .../values/OperationStatement.java | 0 .../compilation/values/RegexStatement.java | 0 .../compilation/values/TypeofStatement.java | 0 .../values/VariableAssignStatement.java | 0 .../values/VariableIndexStatement.java | 0 .../compilation/values/VariableStatement.java | 0 .../me/topchetoeu/jscript/lib/ArrayLib.java | 0 .../jscript/lib/AsyncFunctionLib.java | 0 .../lib/AsyncGeneratorFunctionLib.java | 0 .../jscript/lib/AsyncGeneratorLib.java | 0 .../me/topchetoeu/jscript/lib/BooleanLib.java | 0 .../me/topchetoeu/jscript/lib/ConsoleLib.java | 0 .../me/topchetoeu/jscript/lib/DateLib.java | 0 .../topchetoeu/jscript/lib/EncodingLib.java | 0 .../me/topchetoeu/jscript/lib/ErrorLib.java | 0 .../me/topchetoeu/jscript/lib/FileLib.java | 0 .../topchetoeu/jscript/lib/FilesystemLib.java | 0 .../topchetoeu/jscript/lib/FunctionLib.java | 0 .../jscript/lib/GeneratorFunctionLib.java | 0 .../topchetoeu/jscript/lib/GeneratorLib.java | 0 .../me/topchetoeu/jscript/lib/Internals.java | 0 .../me/topchetoeu/jscript/lib/JSONLib.java | 0 .../me/topchetoeu/jscript/lib/MapLib.java | 0 .../me/topchetoeu/jscript/lib/MathLib.java | 0 .../me/topchetoeu/jscript/lib/NumberLib.java | 0 .../me/topchetoeu/jscript/lib/ObjectLib.java | 0 .../me/topchetoeu/jscript/lib/PromiseLib.java | 0 .../topchetoeu/jscript/lib/RangeErrorLib.java | 0 .../me/topchetoeu/jscript/lib/RegExpLib.java | 0 .../me/topchetoeu/jscript/lib/SetLib.java | 0 .../me/topchetoeu/jscript/lib/StringLib.java | 0 .../me/topchetoeu/jscript/lib/SymbolLib.java | 0 .../jscript/lib/SyntaxErrorLib.java | 0 .../topchetoeu/jscript/lib/ThrowableLib.java | 0 .../topchetoeu/jscript/lib/TypeErrorLib.java | 0 .../topchetoeu/jscript/runtime/Childable.java | 0 .../topchetoeu/jscript/runtime/Compiler.java | 0 .../topchetoeu/jscript/runtime/Context.java | 0 .../topchetoeu/jscript/runtime/Copyable.java | 0 .../me/topchetoeu/jscript/runtime/Engine.java | 0 .../jscript/runtime/Environment.java | 0 .../topchetoeu/jscript/runtime/EventLoop.java | 0 .../jscript/runtime/Extensions.java | 0 .../me/topchetoeu/jscript/runtime/Frame.java | 0 .../jscript/runtime/InstructionRunner.java | 0 .../me/topchetoeu/jscript/runtime/Key.java | 0 .../jscript/runtime/WrapperProvider.java | 0 .../jscript/runtime/debug/DebugContext.java | 0 .../jscript/runtime/debug/DebugHandler.java | 0 .../runtime/exceptions/ConvertException.java | 0 .../runtime/exceptions/EngineException.java | 0 .../exceptions/InterruptException.java | 0 .../runtime/exceptions/SyntaxException.java | 0 .../jscript/runtime/scope/GlobalScope.java | 0 .../jscript/runtime/scope/LocalScope.java | 0 .../jscript/runtime/scope/ValueVariable.java | 0 .../jscript/runtime/scope/Variable.java | 0 .../jscript/runtime/values/ArrayValue.java | 0 .../jscript/runtime/values/CodeFunction.java | 0 .../jscript/runtime/values/ConvertHint.java | 0 .../jscript/runtime/values/FunctionValue.java | 0 .../runtime/values/NativeFunction.java | 0 .../jscript/runtime/values/NativeWrapper.java | 0 .../jscript/runtime/values/ObjectValue.java | 0 .../jscript/runtime/values/ScopeValue.java | 0 .../jscript/runtime/values/Symbol.java | 0 .../jscript/runtime/values/Values.java | 0 .../topchetoeu/jscript/utils/JSCompiler.java | 0 .../topchetoeu/jscript/utils/JScriptRepl.java | 0 .../jscript/utils/debug/DebugServer.java | 0 .../jscript/utils/debug/Debugger.java | 0 .../jscript/utils/debug/DebuggerProvider.java | 0 .../jscript/utils/debug/HttpRequest.java | 0 .../jscript/utils/debug/SimpleDebugger.java | 0 .../jscript/utils/debug/V8Error.java | 0 .../jscript/utils/debug/V8Event.java | 0 .../jscript/utils/debug/V8Message.java | 0 .../jscript/utils/debug/V8Result.java | 0 .../jscript/utils/debug/WebSocket.java | 0 .../jscript/utils/debug/WebSocketMessage.java | 0 .../jscript/utils/filesystem/ActionType.java | 0 .../jscript/utils/filesystem/BaseFile.java | 0 .../jscript/utils/filesystem/EntryType.java | 0 .../jscript/utils/filesystem/ErrorReason.java | 0 .../jscript/utils/filesystem/File.java | 0 .../jscript/utils/filesystem/FileStat.java | 0 .../jscript/utils/filesystem/Filesystem.java | 0 .../utils/filesystem/FilesystemException.java | 0 .../utils/filesystem/HandleManager.java | 0 .../jscript/utils/filesystem/LineReader.java | 0 .../jscript/utils/filesystem/LineWriter.java | 0 .../jscript/utils/filesystem/MemoryFile.java | 0 .../utils/filesystem/MemoryFilesystem.java | 0 .../jscript/utils/filesystem/Mode.java | 0 .../jscript/utils/filesystem/Paths.java | 0 .../utils/filesystem/PhysicalFile.java | 0 .../utils/filesystem/PhysicalFilesystem.java | 0 .../utils/filesystem/RootFilesystem.java | 0 .../utils/filesystem/STDFilesystem.java | 0 .../jscript/utils/interop/Arguments.java | 0 .../jscript/utils/interop/Expose.java | 0 .../utils/interop/ExposeConstructor.java | 0 .../jscript/utils/interop/ExposeField.java | 0 .../jscript/utils/interop/ExposeTarget.java | 0 .../jscript/utils/interop/ExposeType.java | 0 .../utils/interop/NativeWrapperProvider.java | 0 .../jscript/utils/interop/OnWrapperInit.java | 0 .../jscript/utils/interop/WrapperName.java | 0 .../jscript/utils/mapping/SourceMap.java | 0 .../topchetoeu/jscript/utils/mapping/VLQ.java | 0 .../jscript/utils/modules/Module.java | 0 .../jscript/utils/modules/ModuleRepo.java | 0 .../jscript/utils/modules/RootModuleRepo.java | 0 .../jscript/utils/modules/SourceModule.java | 0 .../jscript/utils/permissions/Matcher.java | 0 .../jscript/utils/permissions/Permission.java | 0 .../permissions/PermissionPredicate.java | 0 .../utils/permissions/PermissionsManager.java | 0 .../permissions/PermissionsProvider.java | 0 .../resources}/debugger/favicon.png | Bin .../resources}/debugger/index.html | 0 .../resources}/debugger/protocol.json | 0 src/{assets => main/resources}/metadata.json | 0 .../me/topchetoeu/jscript/TestHelloWorld.java | 14 +++ 187 files changed, 94 insertions(+), 14 deletions(-) rename src/{ => main}/java/me/topchetoeu/jscript/common/Buffer.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/Filename.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/FunctionBody.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/Instruction.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/Location.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/Metadata.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/Operation.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/Reading.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/RefTracker.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/ResultRunnable.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/events/DataNotifier.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/events/Notifier.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/json/JSON.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/json/JSONElement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/json/JSONList.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/json/JSONMap.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/mapping/ConvertType.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/common/mapping/FunctionMap.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/AssignableStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/CompileResult.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/CompoundStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/Statement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/ThrowSyntaxStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/VariableDeclareStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/BreakStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/ContinueStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/DebugStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/DeleteStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/DoWhileStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/ForInStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/ForOfStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/ForStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/IfStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/ReturnStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/SwitchStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/ThrowStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/TryStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/control/WhileStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/parsing/Operator.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/parsing/ParseRes.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/parsing/Parsing.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/parsing/RawToken.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/parsing/TestRes.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/parsing/Token.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/parsing/TokenType.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/scope/LocalScopeRecord.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/scope/ScopeRecord.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/ArrayStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/CallStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/ChangeStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/ConstantStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/DiscardStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/FunctionStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/GlobalThisStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/IndexAssignStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/IndexStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/LazyAndStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/LazyOrStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/ObjectStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/OperationStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/RegexStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/TypeofStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/VariableIndexStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/compilation/values/VariableStatement.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/ArrayLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/AsyncFunctionLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/AsyncGeneratorFunctionLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/AsyncGeneratorLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/BooleanLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/ConsoleLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/DateLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/EncodingLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/ErrorLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/FileLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/FilesystemLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/FunctionLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/GeneratorFunctionLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/GeneratorLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/Internals.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/JSONLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/MapLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/MathLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/NumberLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/ObjectLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/PromiseLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/RangeErrorLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/RegExpLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/SetLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/StringLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/SymbolLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/SyntaxErrorLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/ThrowableLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/lib/TypeErrorLib.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Childable.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Compiler.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Context.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Copyable.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Engine.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Environment.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/EventLoop.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Extensions.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Frame.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/InstructionRunner.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/Key.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/WrapperProvider.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/debug/DebugContext.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/debug/DebugHandler.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/exceptions/ConvertException.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/exceptions/EngineException.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/exceptions/InterruptException.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/exceptions/SyntaxException.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/scope/GlobalScope.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/scope/LocalScope.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/scope/ValueVariable.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/scope/Variable.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/ArrayValue.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/CodeFunction.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/ConvertHint.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/FunctionValue.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/NativeFunction.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/NativeWrapper.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/ObjectValue.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/ScopeValue.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/Symbol.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/runtime/values/Values.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/JSCompiler.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/JScriptRepl.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/DebugServer.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/Debugger.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/DebuggerProvider.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/HttpRequest.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/SimpleDebugger.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/V8Error.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/V8Event.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/V8Message.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/V8Result.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/WebSocket.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/debug/WebSocketMessage.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/ActionType.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/BaseFile.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/EntryType.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/ErrorReason.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/File.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/FileStat.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/Filesystem.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/FilesystemException.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/HandleManager.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/LineReader.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/LineWriter.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/MemoryFile.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/MemoryFilesystem.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/Mode.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/Paths.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFile.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFilesystem.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/RootFilesystem.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/filesystem/STDFilesystem.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/Arguments.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/Expose.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/ExposeConstructor.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/ExposeField.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/ExposeTarget.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/ExposeType.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/OnWrapperInit.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/interop/WrapperName.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/mapping/SourceMap.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/mapping/VLQ.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/modules/Module.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/modules/ModuleRepo.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/modules/RootModuleRepo.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/modules/SourceModule.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/permissions/Matcher.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/permissions/Permission.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/permissions/PermissionPredicate.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/permissions/PermissionsManager.java (100%) rename src/{ => main}/java/me/topchetoeu/jscript/utils/permissions/PermissionsProvider.java (100%) rename src/{assets => main/resources}/debugger/favicon.png (100%) rename src/{assets => main/resources}/debugger/index.html (100%) rename src/{assets => main/resources}/debugger/protocol.json (100%) rename src/{assets => main/resources}/metadata.json (100%) create mode 100644 src/test/java/me/topchetoeu/jscript/TestHelloWorld.java diff --git a/build.gradle b/build.gradle index 187c46b..88bad52 100644 --- a/build.gradle +++ b/build.gradle @@ -1,21 +1,75 @@ +import java.text.SimpleDateFormat + plugins { - id "application" + id 'application' + id 'net.nemerosa.versioning' version '2.15.0' + id 'org.ajoberstar.grgit' version '5.0.0-rc.3' // required by gradle + + // TODO: figure out how to integrate proguard + // id "com.github.xaverkapeller.proguard-annotations" +} + +base.archivesName = project.project_name +version = project.project_version +group = project.project_group +description = 'ES5-compliant JavaScript interpreter' + +repositories { + mavenCentral() +} + +dependencies { + annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.2' + compileOnly 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.2' + testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } java { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 - toolchain.languageVersion = JavaLanguageVersion.of(11) - withSourcesJar() + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } +} + +configure([tasks.compileJava]) { + options.release = 11 } jar { - manifest.attributes["Main-class"] = project.main_class + manifest { + attributes( + 'Main-Class': project.main_class, + 'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()), + 'Build-Branch': versioning.info.branch, + 'Build-Revision': versioning.info.commit, + 'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})", + 'Build-Author': 'TopchetoEU' + ) + } } -sourceSets { - main.java.srcDirs = [ "src/java" ] - main.resources.srcDirs = [ "src/assets" ] +application { + mainClass = project.main_class + applicationDefaultJvmArgs = ['-Xmx2G', '-Xms2G', '-server', '-Dfile.encoding=UTF-8'] +} + +distZip { + eachFile { file -> + if (file.path.contains('bin')) { + file.exclude() + } + } +} + +distTar { + eachFile { file -> + if (file.path.contains('bin')) { + file.exclude() + } + } } processResources { @@ -27,6 +81,10 @@ processResources { } } -base.archivesName = project.project_name -version = project.project_version -group = project.project_group \ No newline at end of file +test { + useJUnitPlatform() +} + +wrapper { + gradleVersion = '8.10' +} diff --git a/gradle.properties b/gradle.properties index a17b580..0181a94 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ project_group = me.topchetoeu project_name = jscript project_version = 0.9.41-beta -main_class = me.topchetoeu.jscript.utils.JScriptRepl +main_class = me.topchetoeu.jscript.runtime.SimpleRepl diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1af9e09..9355b41 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/settings.gradle b/settings.gradle index fc7ee6c..2129498 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,5 +1,13 @@ +pluginManagement { + repositories { + mavenCentral() + gradlePluginPortal() + } +} + plugins { id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' } + rootProject.name = properties.project_name diff --git a/src/java/me/topchetoeu/jscript/common/Buffer.java b/src/main/java/me/topchetoeu/jscript/common/Buffer.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/Buffer.java rename to src/main/java/me/topchetoeu/jscript/common/Buffer.java diff --git a/src/java/me/topchetoeu/jscript/common/Filename.java b/src/main/java/me/topchetoeu/jscript/common/Filename.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/Filename.java rename to src/main/java/me/topchetoeu/jscript/common/Filename.java diff --git a/src/java/me/topchetoeu/jscript/common/FunctionBody.java b/src/main/java/me/topchetoeu/jscript/common/FunctionBody.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/FunctionBody.java rename to src/main/java/me/topchetoeu/jscript/common/FunctionBody.java diff --git a/src/java/me/topchetoeu/jscript/common/Instruction.java b/src/main/java/me/topchetoeu/jscript/common/Instruction.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/Instruction.java rename to src/main/java/me/topchetoeu/jscript/common/Instruction.java diff --git a/src/java/me/topchetoeu/jscript/common/Location.java b/src/main/java/me/topchetoeu/jscript/common/Location.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/Location.java rename to src/main/java/me/topchetoeu/jscript/common/Location.java diff --git a/src/java/me/topchetoeu/jscript/common/Metadata.java b/src/main/java/me/topchetoeu/jscript/common/Metadata.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/Metadata.java rename to src/main/java/me/topchetoeu/jscript/common/Metadata.java diff --git a/src/java/me/topchetoeu/jscript/common/Operation.java b/src/main/java/me/topchetoeu/jscript/common/Operation.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/Operation.java rename to src/main/java/me/topchetoeu/jscript/common/Operation.java diff --git a/src/java/me/topchetoeu/jscript/common/Reading.java b/src/main/java/me/topchetoeu/jscript/common/Reading.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/Reading.java rename to src/main/java/me/topchetoeu/jscript/common/Reading.java diff --git a/src/java/me/topchetoeu/jscript/common/RefTracker.java b/src/main/java/me/topchetoeu/jscript/common/RefTracker.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/RefTracker.java rename to src/main/java/me/topchetoeu/jscript/common/RefTracker.java diff --git a/src/java/me/topchetoeu/jscript/common/ResultRunnable.java b/src/main/java/me/topchetoeu/jscript/common/ResultRunnable.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/ResultRunnable.java rename to src/main/java/me/topchetoeu/jscript/common/ResultRunnable.java diff --git a/src/java/me/topchetoeu/jscript/common/events/DataNotifier.java b/src/main/java/me/topchetoeu/jscript/common/events/DataNotifier.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/events/DataNotifier.java rename to src/main/java/me/topchetoeu/jscript/common/events/DataNotifier.java diff --git a/src/java/me/topchetoeu/jscript/common/events/Notifier.java b/src/main/java/me/topchetoeu/jscript/common/events/Notifier.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/events/Notifier.java rename to src/main/java/me/topchetoeu/jscript/common/events/Notifier.java diff --git a/src/java/me/topchetoeu/jscript/common/json/JSON.java b/src/main/java/me/topchetoeu/jscript/common/json/JSON.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/json/JSON.java rename to src/main/java/me/topchetoeu/jscript/common/json/JSON.java diff --git a/src/java/me/topchetoeu/jscript/common/json/JSONElement.java b/src/main/java/me/topchetoeu/jscript/common/json/JSONElement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/json/JSONElement.java rename to src/main/java/me/topchetoeu/jscript/common/json/JSONElement.java diff --git a/src/java/me/topchetoeu/jscript/common/json/JSONList.java b/src/main/java/me/topchetoeu/jscript/common/json/JSONList.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/json/JSONList.java rename to src/main/java/me/topchetoeu/jscript/common/json/JSONList.java diff --git a/src/java/me/topchetoeu/jscript/common/json/JSONMap.java b/src/main/java/me/topchetoeu/jscript/common/json/JSONMap.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/json/JSONMap.java rename to src/main/java/me/topchetoeu/jscript/common/json/JSONMap.java diff --git a/src/java/me/topchetoeu/jscript/common/mapping/ConvertType.java b/src/main/java/me/topchetoeu/jscript/common/mapping/ConvertType.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/mapping/ConvertType.java rename to src/main/java/me/topchetoeu/jscript/common/mapping/ConvertType.java diff --git a/src/java/me/topchetoeu/jscript/common/mapping/FunctionMap.java b/src/main/java/me/topchetoeu/jscript/common/mapping/FunctionMap.java similarity index 100% rename from src/java/me/topchetoeu/jscript/common/mapping/FunctionMap.java rename to src/main/java/me/topchetoeu/jscript/common/mapping/FunctionMap.java diff --git a/src/java/me/topchetoeu/jscript/compilation/AssignableStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/AssignableStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/AssignableStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/AssignableStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/CompileResult.java b/src/main/java/me/topchetoeu/jscript/compilation/CompileResult.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/CompileResult.java rename to src/main/java/me/topchetoeu/jscript/compilation/CompileResult.java diff --git a/src/java/me/topchetoeu/jscript/compilation/CompoundStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/CompoundStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/CompoundStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/CompoundStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/Statement.java b/src/main/java/me/topchetoeu/jscript/compilation/Statement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/Statement.java rename to src/main/java/me/topchetoeu/jscript/compilation/Statement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/ThrowSyntaxStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/ThrowSyntaxStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/ThrowSyntaxStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/ThrowSyntaxStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/VariableDeclareStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/VariableDeclareStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/VariableDeclareStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/VariableDeclareStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/BreakStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/BreakStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/BreakStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/BreakStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/ContinueStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/ContinueStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/ContinueStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/ContinueStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/DebugStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/DebugStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/DebugStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/DebugStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/DeleteStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/DeleteStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/DeleteStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/DeleteStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/DoWhileStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/DoWhileStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/DoWhileStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/DoWhileStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/ForInStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/ForInStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/ForInStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/ForInStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/ForOfStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/ForOfStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/ForOfStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/ForOfStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/ForStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/ForStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/ForStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/ForStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/IfStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/IfStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/IfStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/IfStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/ReturnStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/ReturnStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/ReturnStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/ReturnStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/SwitchStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/SwitchStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/SwitchStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/SwitchStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/ThrowStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/ThrowStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/ThrowStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/ThrowStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/TryStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/TryStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/TryStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/TryStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/control/WhileStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/control/WhileStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/control/WhileStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/control/WhileStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/parsing/Operator.java b/src/main/java/me/topchetoeu/jscript/compilation/parsing/Operator.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/parsing/Operator.java rename to src/main/java/me/topchetoeu/jscript/compilation/parsing/Operator.java diff --git a/src/java/me/topchetoeu/jscript/compilation/parsing/ParseRes.java b/src/main/java/me/topchetoeu/jscript/compilation/parsing/ParseRes.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/parsing/ParseRes.java rename to src/main/java/me/topchetoeu/jscript/compilation/parsing/ParseRes.java diff --git a/src/java/me/topchetoeu/jscript/compilation/parsing/Parsing.java b/src/main/java/me/topchetoeu/jscript/compilation/parsing/Parsing.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/parsing/Parsing.java rename to src/main/java/me/topchetoeu/jscript/compilation/parsing/Parsing.java diff --git a/src/java/me/topchetoeu/jscript/compilation/parsing/RawToken.java b/src/main/java/me/topchetoeu/jscript/compilation/parsing/RawToken.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/parsing/RawToken.java rename to src/main/java/me/topchetoeu/jscript/compilation/parsing/RawToken.java diff --git a/src/java/me/topchetoeu/jscript/compilation/parsing/TestRes.java b/src/main/java/me/topchetoeu/jscript/compilation/parsing/TestRes.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/parsing/TestRes.java rename to src/main/java/me/topchetoeu/jscript/compilation/parsing/TestRes.java diff --git a/src/java/me/topchetoeu/jscript/compilation/parsing/Token.java b/src/main/java/me/topchetoeu/jscript/compilation/parsing/Token.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/parsing/Token.java rename to src/main/java/me/topchetoeu/jscript/compilation/parsing/Token.java diff --git a/src/java/me/topchetoeu/jscript/compilation/parsing/TokenType.java b/src/main/java/me/topchetoeu/jscript/compilation/parsing/TokenType.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/parsing/TokenType.java rename to src/main/java/me/topchetoeu/jscript/compilation/parsing/TokenType.java diff --git a/src/java/me/topchetoeu/jscript/compilation/scope/LocalScopeRecord.java b/src/main/java/me/topchetoeu/jscript/compilation/scope/LocalScopeRecord.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/scope/LocalScopeRecord.java rename to src/main/java/me/topchetoeu/jscript/compilation/scope/LocalScopeRecord.java diff --git a/src/java/me/topchetoeu/jscript/compilation/scope/ScopeRecord.java b/src/main/java/me/topchetoeu/jscript/compilation/scope/ScopeRecord.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/scope/ScopeRecord.java rename to src/main/java/me/topchetoeu/jscript/compilation/scope/ScopeRecord.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/ArrayStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/ArrayStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/ArrayStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/ArrayStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/CallStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/CallStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/CallStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/CallStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/ChangeStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/ChangeStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/ChangeStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/ChangeStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/ConstantStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/ConstantStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/ConstantStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/ConstantStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/DiscardStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/DiscardStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/DiscardStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/DiscardStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/FunctionStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/FunctionStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/FunctionStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/FunctionStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/GlobalThisStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/GlobalThisStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/GlobalThisStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/GlobalThisStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/IndexAssignStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/IndexAssignStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/IndexAssignStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/IndexAssignStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/IndexStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/IndexStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/IndexStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/IndexStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/LazyAndStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/LazyAndStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/LazyAndStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/LazyAndStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/LazyOrStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/LazyOrStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/LazyOrStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/LazyOrStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/ObjectStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/ObjectStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/ObjectStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/ObjectStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/OperationStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/OperationStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/OperationStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/OperationStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/RegexStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/RegexStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/RegexStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/RegexStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/TypeofStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/TypeofStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/TypeofStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/TypeofStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/VariableIndexStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/VariableIndexStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/VariableIndexStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/VariableIndexStatement.java diff --git a/src/java/me/topchetoeu/jscript/compilation/values/VariableStatement.java b/src/main/java/me/topchetoeu/jscript/compilation/values/VariableStatement.java similarity index 100% rename from src/java/me/topchetoeu/jscript/compilation/values/VariableStatement.java rename to src/main/java/me/topchetoeu/jscript/compilation/values/VariableStatement.java diff --git a/src/java/me/topchetoeu/jscript/lib/ArrayLib.java b/src/main/java/me/topchetoeu/jscript/lib/ArrayLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/ArrayLib.java rename to src/main/java/me/topchetoeu/jscript/lib/ArrayLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/AsyncFunctionLib.java b/src/main/java/me/topchetoeu/jscript/lib/AsyncFunctionLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/AsyncFunctionLib.java rename to src/main/java/me/topchetoeu/jscript/lib/AsyncFunctionLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/AsyncGeneratorFunctionLib.java b/src/main/java/me/topchetoeu/jscript/lib/AsyncGeneratorFunctionLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/AsyncGeneratorFunctionLib.java rename to src/main/java/me/topchetoeu/jscript/lib/AsyncGeneratorFunctionLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/AsyncGeneratorLib.java b/src/main/java/me/topchetoeu/jscript/lib/AsyncGeneratorLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/AsyncGeneratorLib.java rename to src/main/java/me/topchetoeu/jscript/lib/AsyncGeneratorLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/BooleanLib.java b/src/main/java/me/topchetoeu/jscript/lib/BooleanLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/BooleanLib.java rename to src/main/java/me/topchetoeu/jscript/lib/BooleanLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/ConsoleLib.java b/src/main/java/me/topchetoeu/jscript/lib/ConsoleLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/ConsoleLib.java rename to src/main/java/me/topchetoeu/jscript/lib/ConsoleLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/DateLib.java b/src/main/java/me/topchetoeu/jscript/lib/DateLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/DateLib.java rename to src/main/java/me/topchetoeu/jscript/lib/DateLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/EncodingLib.java b/src/main/java/me/topchetoeu/jscript/lib/EncodingLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/EncodingLib.java rename to src/main/java/me/topchetoeu/jscript/lib/EncodingLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/ErrorLib.java b/src/main/java/me/topchetoeu/jscript/lib/ErrorLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/ErrorLib.java rename to src/main/java/me/topchetoeu/jscript/lib/ErrorLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/FileLib.java b/src/main/java/me/topchetoeu/jscript/lib/FileLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/FileLib.java rename to src/main/java/me/topchetoeu/jscript/lib/FileLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/FilesystemLib.java b/src/main/java/me/topchetoeu/jscript/lib/FilesystemLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/FilesystemLib.java rename to src/main/java/me/topchetoeu/jscript/lib/FilesystemLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/FunctionLib.java b/src/main/java/me/topchetoeu/jscript/lib/FunctionLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/FunctionLib.java rename to src/main/java/me/topchetoeu/jscript/lib/FunctionLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/GeneratorFunctionLib.java b/src/main/java/me/topchetoeu/jscript/lib/GeneratorFunctionLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/GeneratorFunctionLib.java rename to src/main/java/me/topchetoeu/jscript/lib/GeneratorFunctionLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/GeneratorLib.java b/src/main/java/me/topchetoeu/jscript/lib/GeneratorLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/GeneratorLib.java rename to src/main/java/me/topchetoeu/jscript/lib/GeneratorLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/Internals.java b/src/main/java/me/topchetoeu/jscript/lib/Internals.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/Internals.java rename to src/main/java/me/topchetoeu/jscript/lib/Internals.java diff --git a/src/java/me/topchetoeu/jscript/lib/JSONLib.java b/src/main/java/me/topchetoeu/jscript/lib/JSONLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/JSONLib.java rename to src/main/java/me/topchetoeu/jscript/lib/JSONLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/MapLib.java b/src/main/java/me/topchetoeu/jscript/lib/MapLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/MapLib.java rename to src/main/java/me/topchetoeu/jscript/lib/MapLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/MathLib.java b/src/main/java/me/topchetoeu/jscript/lib/MathLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/MathLib.java rename to src/main/java/me/topchetoeu/jscript/lib/MathLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/NumberLib.java b/src/main/java/me/topchetoeu/jscript/lib/NumberLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/NumberLib.java rename to src/main/java/me/topchetoeu/jscript/lib/NumberLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/ObjectLib.java b/src/main/java/me/topchetoeu/jscript/lib/ObjectLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/ObjectLib.java rename to src/main/java/me/topchetoeu/jscript/lib/ObjectLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/PromiseLib.java b/src/main/java/me/topchetoeu/jscript/lib/PromiseLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/PromiseLib.java rename to src/main/java/me/topchetoeu/jscript/lib/PromiseLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/RangeErrorLib.java b/src/main/java/me/topchetoeu/jscript/lib/RangeErrorLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/RangeErrorLib.java rename to src/main/java/me/topchetoeu/jscript/lib/RangeErrorLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/RegExpLib.java b/src/main/java/me/topchetoeu/jscript/lib/RegExpLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/RegExpLib.java rename to src/main/java/me/topchetoeu/jscript/lib/RegExpLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/SetLib.java b/src/main/java/me/topchetoeu/jscript/lib/SetLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/SetLib.java rename to src/main/java/me/topchetoeu/jscript/lib/SetLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/StringLib.java b/src/main/java/me/topchetoeu/jscript/lib/StringLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/StringLib.java rename to src/main/java/me/topchetoeu/jscript/lib/StringLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/SymbolLib.java b/src/main/java/me/topchetoeu/jscript/lib/SymbolLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/SymbolLib.java rename to src/main/java/me/topchetoeu/jscript/lib/SymbolLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/SyntaxErrorLib.java b/src/main/java/me/topchetoeu/jscript/lib/SyntaxErrorLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/SyntaxErrorLib.java rename to src/main/java/me/topchetoeu/jscript/lib/SyntaxErrorLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/ThrowableLib.java b/src/main/java/me/topchetoeu/jscript/lib/ThrowableLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/ThrowableLib.java rename to src/main/java/me/topchetoeu/jscript/lib/ThrowableLib.java diff --git a/src/java/me/topchetoeu/jscript/lib/TypeErrorLib.java b/src/main/java/me/topchetoeu/jscript/lib/TypeErrorLib.java similarity index 100% rename from src/java/me/topchetoeu/jscript/lib/TypeErrorLib.java rename to src/main/java/me/topchetoeu/jscript/lib/TypeErrorLib.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Childable.java b/src/main/java/me/topchetoeu/jscript/runtime/Childable.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Childable.java rename to src/main/java/me/topchetoeu/jscript/runtime/Childable.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Compiler.java b/src/main/java/me/topchetoeu/jscript/runtime/Compiler.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Compiler.java rename to src/main/java/me/topchetoeu/jscript/runtime/Compiler.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Context.java b/src/main/java/me/topchetoeu/jscript/runtime/Context.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Context.java rename to src/main/java/me/topchetoeu/jscript/runtime/Context.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Copyable.java b/src/main/java/me/topchetoeu/jscript/runtime/Copyable.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Copyable.java rename to src/main/java/me/topchetoeu/jscript/runtime/Copyable.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Engine.java b/src/main/java/me/topchetoeu/jscript/runtime/Engine.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Engine.java rename to src/main/java/me/topchetoeu/jscript/runtime/Engine.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Environment.java b/src/main/java/me/topchetoeu/jscript/runtime/Environment.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Environment.java rename to src/main/java/me/topchetoeu/jscript/runtime/Environment.java diff --git a/src/java/me/topchetoeu/jscript/runtime/EventLoop.java b/src/main/java/me/topchetoeu/jscript/runtime/EventLoop.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/EventLoop.java rename to src/main/java/me/topchetoeu/jscript/runtime/EventLoop.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Extensions.java b/src/main/java/me/topchetoeu/jscript/runtime/Extensions.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Extensions.java rename to src/main/java/me/topchetoeu/jscript/runtime/Extensions.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Frame.java b/src/main/java/me/topchetoeu/jscript/runtime/Frame.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Frame.java rename to src/main/java/me/topchetoeu/jscript/runtime/Frame.java diff --git a/src/java/me/topchetoeu/jscript/runtime/InstructionRunner.java b/src/main/java/me/topchetoeu/jscript/runtime/InstructionRunner.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/InstructionRunner.java rename to src/main/java/me/topchetoeu/jscript/runtime/InstructionRunner.java diff --git a/src/java/me/topchetoeu/jscript/runtime/Key.java b/src/main/java/me/topchetoeu/jscript/runtime/Key.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/Key.java rename to src/main/java/me/topchetoeu/jscript/runtime/Key.java diff --git a/src/java/me/topchetoeu/jscript/runtime/WrapperProvider.java b/src/main/java/me/topchetoeu/jscript/runtime/WrapperProvider.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/WrapperProvider.java rename to src/main/java/me/topchetoeu/jscript/runtime/WrapperProvider.java diff --git a/src/java/me/topchetoeu/jscript/runtime/debug/DebugContext.java b/src/main/java/me/topchetoeu/jscript/runtime/debug/DebugContext.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/debug/DebugContext.java rename to src/main/java/me/topchetoeu/jscript/runtime/debug/DebugContext.java diff --git a/src/java/me/topchetoeu/jscript/runtime/debug/DebugHandler.java b/src/main/java/me/topchetoeu/jscript/runtime/debug/DebugHandler.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/debug/DebugHandler.java rename to src/main/java/me/topchetoeu/jscript/runtime/debug/DebugHandler.java diff --git a/src/java/me/topchetoeu/jscript/runtime/exceptions/ConvertException.java b/src/main/java/me/topchetoeu/jscript/runtime/exceptions/ConvertException.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/exceptions/ConvertException.java rename to src/main/java/me/topchetoeu/jscript/runtime/exceptions/ConvertException.java diff --git a/src/java/me/topchetoeu/jscript/runtime/exceptions/EngineException.java b/src/main/java/me/topchetoeu/jscript/runtime/exceptions/EngineException.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/exceptions/EngineException.java rename to src/main/java/me/topchetoeu/jscript/runtime/exceptions/EngineException.java diff --git a/src/java/me/topchetoeu/jscript/runtime/exceptions/InterruptException.java b/src/main/java/me/topchetoeu/jscript/runtime/exceptions/InterruptException.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/exceptions/InterruptException.java rename to src/main/java/me/topchetoeu/jscript/runtime/exceptions/InterruptException.java diff --git a/src/java/me/topchetoeu/jscript/runtime/exceptions/SyntaxException.java b/src/main/java/me/topchetoeu/jscript/runtime/exceptions/SyntaxException.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/exceptions/SyntaxException.java rename to src/main/java/me/topchetoeu/jscript/runtime/exceptions/SyntaxException.java diff --git a/src/java/me/topchetoeu/jscript/runtime/scope/GlobalScope.java b/src/main/java/me/topchetoeu/jscript/runtime/scope/GlobalScope.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/scope/GlobalScope.java rename to src/main/java/me/topchetoeu/jscript/runtime/scope/GlobalScope.java diff --git a/src/java/me/topchetoeu/jscript/runtime/scope/LocalScope.java b/src/main/java/me/topchetoeu/jscript/runtime/scope/LocalScope.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/scope/LocalScope.java rename to src/main/java/me/topchetoeu/jscript/runtime/scope/LocalScope.java diff --git a/src/java/me/topchetoeu/jscript/runtime/scope/ValueVariable.java b/src/main/java/me/topchetoeu/jscript/runtime/scope/ValueVariable.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/scope/ValueVariable.java rename to src/main/java/me/topchetoeu/jscript/runtime/scope/ValueVariable.java diff --git a/src/java/me/topchetoeu/jscript/runtime/scope/Variable.java b/src/main/java/me/topchetoeu/jscript/runtime/scope/Variable.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/scope/Variable.java rename to src/main/java/me/topchetoeu/jscript/runtime/scope/Variable.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/ArrayValue.java b/src/main/java/me/topchetoeu/jscript/runtime/values/ArrayValue.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/ArrayValue.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/ArrayValue.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/CodeFunction.java b/src/main/java/me/topchetoeu/jscript/runtime/values/CodeFunction.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/CodeFunction.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/CodeFunction.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/ConvertHint.java b/src/main/java/me/topchetoeu/jscript/runtime/values/ConvertHint.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/ConvertHint.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/ConvertHint.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/FunctionValue.java b/src/main/java/me/topchetoeu/jscript/runtime/values/FunctionValue.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/FunctionValue.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/FunctionValue.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/NativeFunction.java b/src/main/java/me/topchetoeu/jscript/runtime/values/NativeFunction.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/NativeFunction.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/NativeFunction.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/NativeWrapper.java b/src/main/java/me/topchetoeu/jscript/runtime/values/NativeWrapper.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/NativeWrapper.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/NativeWrapper.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/ObjectValue.java b/src/main/java/me/topchetoeu/jscript/runtime/values/ObjectValue.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/ObjectValue.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/ObjectValue.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/ScopeValue.java b/src/main/java/me/topchetoeu/jscript/runtime/values/ScopeValue.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/ScopeValue.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/ScopeValue.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/Symbol.java b/src/main/java/me/topchetoeu/jscript/runtime/values/Symbol.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/Symbol.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/Symbol.java diff --git a/src/java/me/topchetoeu/jscript/runtime/values/Values.java b/src/main/java/me/topchetoeu/jscript/runtime/values/Values.java similarity index 100% rename from src/java/me/topchetoeu/jscript/runtime/values/Values.java rename to src/main/java/me/topchetoeu/jscript/runtime/values/Values.java diff --git a/src/java/me/topchetoeu/jscript/utils/JSCompiler.java b/src/main/java/me/topchetoeu/jscript/utils/JSCompiler.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/JSCompiler.java rename to src/main/java/me/topchetoeu/jscript/utils/JSCompiler.java diff --git a/src/java/me/topchetoeu/jscript/utils/JScriptRepl.java b/src/main/java/me/topchetoeu/jscript/utils/JScriptRepl.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/JScriptRepl.java rename to src/main/java/me/topchetoeu/jscript/utils/JScriptRepl.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/DebugServer.java b/src/main/java/me/topchetoeu/jscript/utils/debug/DebugServer.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/DebugServer.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/DebugServer.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/Debugger.java b/src/main/java/me/topchetoeu/jscript/utils/debug/Debugger.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/Debugger.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/Debugger.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/DebuggerProvider.java b/src/main/java/me/topchetoeu/jscript/utils/debug/DebuggerProvider.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/DebuggerProvider.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/DebuggerProvider.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/HttpRequest.java b/src/main/java/me/topchetoeu/jscript/utils/debug/HttpRequest.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/HttpRequest.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/HttpRequest.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/SimpleDebugger.java b/src/main/java/me/topchetoeu/jscript/utils/debug/SimpleDebugger.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/SimpleDebugger.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/SimpleDebugger.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/V8Error.java b/src/main/java/me/topchetoeu/jscript/utils/debug/V8Error.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/V8Error.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/V8Error.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/V8Event.java b/src/main/java/me/topchetoeu/jscript/utils/debug/V8Event.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/V8Event.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/V8Event.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/V8Message.java b/src/main/java/me/topchetoeu/jscript/utils/debug/V8Message.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/V8Message.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/V8Message.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/V8Result.java b/src/main/java/me/topchetoeu/jscript/utils/debug/V8Result.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/V8Result.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/V8Result.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/WebSocket.java b/src/main/java/me/topchetoeu/jscript/utils/debug/WebSocket.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/WebSocket.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/WebSocket.java diff --git a/src/java/me/topchetoeu/jscript/utils/debug/WebSocketMessage.java b/src/main/java/me/topchetoeu/jscript/utils/debug/WebSocketMessage.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/debug/WebSocketMessage.java rename to src/main/java/me/topchetoeu/jscript/utils/debug/WebSocketMessage.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/ActionType.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/ActionType.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/ActionType.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/ActionType.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/BaseFile.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/BaseFile.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/BaseFile.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/BaseFile.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/EntryType.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/EntryType.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/EntryType.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/EntryType.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/ErrorReason.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/ErrorReason.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/ErrorReason.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/ErrorReason.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/File.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/File.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/File.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/File.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/FileStat.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/FileStat.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/FileStat.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/FileStat.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/Filesystem.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/Filesystem.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/Filesystem.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/Filesystem.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/FilesystemException.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/FilesystemException.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/FilesystemException.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/FilesystemException.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/HandleManager.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/HandleManager.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/HandleManager.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/HandleManager.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/LineReader.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/LineReader.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/LineReader.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/LineReader.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/LineWriter.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/LineWriter.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/LineWriter.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/LineWriter.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/MemoryFile.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/MemoryFile.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/MemoryFile.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/MemoryFile.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/MemoryFilesystem.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/MemoryFilesystem.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/MemoryFilesystem.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/MemoryFilesystem.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/Mode.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/Mode.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/Mode.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/Mode.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/Paths.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/Paths.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/Paths.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/Paths.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFile.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFile.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFile.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFile.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFilesystem.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFilesystem.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFilesystem.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/PhysicalFilesystem.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/RootFilesystem.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/RootFilesystem.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/RootFilesystem.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/RootFilesystem.java diff --git a/src/java/me/topchetoeu/jscript/utils/filesystem/STDFilesystem.java b/src/main/java/me/topchetoeu/jscript/utils/filesystem/STDFilesystem.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/filesystem/STDFilesystem.java rename to src/main/java/me/topchetoeu/jscript/utils/filesystem/STDFilesystem.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/Arguments.java b/src/main/java/me/topchetoeu/jscript/utils/interop/Arguments.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/Arguments.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/Arguments.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/Expose.java b/src/main/java/me/topchetoeu/jscript/utils/interop/Expose.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/Expose.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/Expose.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/ExposeConstructor.java b/src/main/java/me/topchetoeu/jscript/utils/interop/ExposeConstructor.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/ExposeConstructor.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/ExposeConstructor.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/ExposeField.java b/src/main/java/me/topchetoeu/jscript/utils/interop/ExposeField.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/ExposeField.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/ExposeField.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/ExposeTarget.java b/src/main/java/me/topchetoeu/jscript/utils/interop/ExposeTarget.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/ExposeTarget.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/ExposeTarget.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/ExposeType.java b/src/main/java/me/topchetoeu/jscript/utils/interop/ExposeType.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/ExposeType.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/ExposeType.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java b/src/main/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/OnWrapperInit.java b/src/main/java/me/topchetoeu/jscript/utils/interop/OnWrapperInit.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/OnWrapperInit.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/OnWrapperInit.java diff --git a/src/java/me/topchetoeu/jscript/utils/interop/WrapperName.java b/src/main/java/me/topchetoeu/jscript/utils/interop/WrapperName.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/interop/WrapperName.java rename to src/main/java/me/topchetoeu/jscript/utils/interop/WrapperName.java diff --git a/src/java/me/topchetoeu/jscript/utils/mapping/SourceMap.java b/src/main/java/me/topchetoeu/jscript/utils/mapping/SourceMap.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/mapping/SourceMap.java rename to src/main/java/me/topchetoeu/jscript/utils/mapping/SourceMap.java diff --git a/src/java/me/topchetoeu/jscript/utils/mapping/VLQ.java b/src/main/java/me/topchetoeu/jscript/utils/mapping/VLQ.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/mapping/VLQ.java rename to src/main/java/me/topchetoeu/jscript/utils/mapping/VLQ.java diff --git a/src/java/me/topchetoeu/jscript/utils/modules/Module.java b/src/main/java/me/topchetoeu/jscript/utils/modules/Module.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/modules/Module.java rename to src/main/java/me/topchetoeu/jscript/utils/modules/Module.java diff --git a/src/java/me/topchetoeu/jscript/utils/modules/ModuleRepo.java b/src/main/java/me/topchetoeu/jscript/utils/modules/ModuleRepo.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/modules/ModuleRepo.java rename to src/main/java/me/topchetoeu/jscript/utils/modules/ModuleRepo.java diff --git a/src/java/me/topchetoeu/jscript/utils/modules/RootModuleRepo.java b/src/main/java/me/topchetoeu/jscript/utils/modules/RootModuleRepo.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/modules/RootModuleRepo.java rename to src/main/java/me/topchetoeu/jscript/utils/modules/RootModuleRepo.java diff --git a/src/java/me/topchetoeu/jscript/utils/modules/SourceModule.java b/src/main/java/me/topchetoeu/jscript/utils/modules/SourceModule.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/modules/SourceModule.java rename to src/main/java/me/topchetoeu/jscript/utils/modules/SourceModule.java diff --git a/src/java/me/topchetoeu/jscript/utils/permissions/Matcher.java b/src/main/java/me/topchetoeu/jscript/utils/permissions/Matcher.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/permissions/Matcher.java rename to src/main/java/me/topchetoeu/jscript/utils/permissions/Matcher.java diff --git a/src/java/me/topchetoeu/jscript/utils/permissions/Permission.java b/src/main/java/me/topchetoeu/jscript/utils/permissions/Permission.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/permissions/Permission.java rename to src/main/java/me/topchetoeu/jscript/utils/permissions/Permission.java diff --git a/src/java/me/topchetoeu/jscript/utils/permissions/PermissionPredicate.java b/src/main/java/me/topchetoeu/jscript/utils/permissions/PermissionPredicate.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/permissions/PermissionPredicate.java rename to src/main/java/me/topchetoeu/jscript/utils/permissions/PermissionPredicate.java diff --git a/src/java/me/topchetoeu/jscript/utils/permissions/PermissionsManager.java b/src/main/java/me/topchetoeu/jscript/utils/permissions/PermissionsManager.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/permissions/PermissionsManager.java rename to src/main/java/me/topchetoeu/jscript/utils/permissions/PermissionsManager.java diff --git a/src/java/me/topchetoeu/jscript/utils/permissions/PermissionsProvider.java b/src/main/java/me/topchetoeu/jscript/utils/permissions/PermissionsProvider.java similarity index 100% rename from src/java/me/topchetoeu/jscript/utils/permissions/PermissionsProvider.java rename to src/main/java/me/topchetoeu/jscript/utils/permissions/PermissionsProvider.java diff --git a/src/assets/debugger/favicon.png b/src/main/resources/debugger/favicon.png similarity index 100% rename from src/assets/debugger/favicon.png rename to src/main/resources/debugger/favicon.png diff --git a/src/assets/debugger/index.html b/src/main/resources/debugger/index.html similarity index 100% rename from src/assets/debugger/index.html rename to src/main/resources/debugger/index.html diff --git a/src/assets/debugger/protocol.json b/src/main/resources/debugger/protocol.json similarity index 100% rename from src/assets/debugger/protocol.json rename to src/main/resources/debugger/protocol.json diff --git a/src/assets/metadata.json b/src/main/resources/metadata.json similarity index 100% rename from src/assets/metadata.json rename to src/main/resources/metadata.json diff --git a/src/test/java/me/topchetoeu/jscript/TestHelloWorld.java b/src/test/java/me/topchetoeu/jscript/TestHelloWorld.java new file mode 100644 index 0000000..efb2e25 --- /dev/null +++ b/src/test/java/me/topchetoeu/jscript/TestHelloWorld.java @@ -0,0 +1,14 @@ +package me.topchetoeu.jscript; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class TestHelloWorld { + + @Test + public void testHelloWorld() { + final String message = "Hello World!"; + assertEquals("Hello World!", message); + } +}