htmlunit-core-js
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit-core-js</artifactId>
<version>4.18.0</version>
</dependency><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit-core-js</artifactId>
<version>4.18.0</version>
<name>HtmlUnit JavaScript Engine</name>
<organization>
<name>HtmlUnit</name>
<url>https://www.htmlunit.org</url>
</organization>
<packaging>jar</packaging>
<description>HtmlUnit adaptation of Mozilla Rhino Javascript engine for Java. Changes are documented by a diff (rhinoDiff.txt) contained in the generated jar files.</description>
<url>https://github.com/HtmlUnit/htmlunit-core-js</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<!-- test dependencies -->
<junit.version>5.14.0</junit.version>
<junit-launcher.version>1.14.0</junit-launcher.version>
<!-- quality -->
<dependencycheck.version>10.0.4</dependencycheck.version>
<!-- plugins -->
<central-publishing.version>0.9.0</central-publishing.version>
<clean-plugin.version>3.5.0</clean-plugin.version>
<build-helper-plugin.version>3.6.1</build-helper-plugin.version>
<gpg-plugin.version>3.2.8</gpg-plugin.version>
<enforcer-plugin.version>3.6.2</enforcer-plugin.version>
<compiler-plugin.version>3.14.1</compiler-plugin.version>
<javadoc-plugin.version>3.12.0</javadoc-plugin.version>
<surefire-plugin.version>3.5.4</surefire-plugin.version>
</properties>
<build>
<resources>
<resource>
<directory>src/repackaged-rhino/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-plugin.version}</version>
<executions>
<execution>
<id>generate-rhino-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/repackaged-rhino/java</source>
</sources>
</configuration>
</execution>
<!--
<execution>
<id>generate-rhino-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/repackaged-rhino-test/java</source>
</sources>
</configuration>
</execution>
-->
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${enforcer-plugin.version}</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.6.3</version>
</requireMavenVersion>
<requireJavaVersion>
<version>1.8.0</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${dependencycheck.version}</version>
<configuration>
<failBuildOnCVSS>0</failBuildOnCVSS>
<assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>
<nvdDatafeedUrl>https://mirror.cveb.in/nvd/json/cve/1.1/nvdcve-1.1-{0}.json.gz</nvdDatafeedUrl>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${clean-plugin.version}</version>
<configuration>
<filesets>
<fileset>
<directory>${basedir}/src/repackaged-rhino</directory>
<includes>
<include>**/*</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
<fileset>
<directory>${basedir}/src/repackaged-rhino-test</directory>
<includes>
<include>**/*</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>copy-resource-01</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/src/repackaged-rhino/java/org/htmlunit/corejs</outputDirectory>
<resources>
<resource>
<directory>../htmlunit-rhino-fork/rhino/src/main/java/org/mozilla</directory>
<includes>
<include>**/*.java</include>
</includes>
<excludes>
<exclude>javascript/optimizer/**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>../htmlunit-rhino-fork/rhino-tools/src/main/java/org/mozilla</directory>
<includes>
<include>javascript/tools/debugger/**/*.java</include>
<include>javascript/tools/shell/**/*.java</include>
<include>javascript/tools/*.java</include>
</includes>
<excludes>
<exclude>javascript/tools/shell/**/ExecUtil.java</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-resource-02</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/src/repackaged-rhino/resources/org/htmlunit/corejs</outputDirectory>
<resources>
<resource>
<directory>../htmlunit-rhino-fork/rhino/src/main/resources/org/mozilla</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-resources-03</id>
<phase>compile</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/repackaged-rhino/resources</directory>
<include>**/*.properties</include>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-resources-04</id>
<phase>compile</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/src/repackaged-rhino-test/java/org/htmlunit/corejs</outputDirectory>
<resources>
<resource>
<directory>../htmlunit-rhino-fork/testutils/src/main/java/org/mozilla</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<id>replace-souce</id>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<basedir>${basedir}/src/repackaged-rhino/java/org/htmlunit/corejs</basedir>
<regex>true</regex>
<includes>
<include>**/*.java</include>
</includes>
<replacements>
<replacement>
<token>org\.mozilla</token>
<value>org.htmlunit.corejs</value>
</replacement>
<replacement>
<token>org/mozilla</token>
<value>org/htmlunit/corejs</value>
</replacement>
<replacement>
<token>version == Context.VERSION_1_0</token>
<value>/* HtmlUnit version == #Context.VERSION_1_0 */ false</value>
</replacement>
<replacement>
<token>version == Context.VERSION_1_1</token>
<value>/* HtmlUnit version == #Context.VERSION_1_1 */ false</value>
</replacement>
<replacement>
<token>version == Context.VERSION_1_2</token>
<value>/* HtmlUnit version == #Context.VERSION_1_2 */ false</value>
</replacement>
<replacement>
<token>version <= Context.VERSION_1_3</token>
<value>/* HtmlUnit version <= #Context.VERSION_1_3 */ false</value>
</replacement>
<replacement>
<token>version < Context.VERSION_1_3</token>
<value>/* HtmlUnit version < #Context.VERSION_1_3 */ false</value>
</replacement>
<replacement>
<token>version <= Context.VERSION_1_4</token>
<value>/* HtmlUnit version <= #Context.VERSION_1_4 */ false</value>
</replacement>
<replacement>
<token>version >= Context.VERSION_1_4</token>
<value>/* HtmlUnit version >= #Context.VERSION_1_4 */ true</value>
</replacement>
<replacement>
<token>version >= Context.VERSION_1_6</token>
<value>/* HtmlUnit version >= #Context.VERSION_1_6 */ true</value>
</replacement>
<replacement>
<token>cx.version < Context.VERSION_ES6</token>
<value>/* HtmlUnit cx.version < #Context.VERSION_ES6 */ false</value>
</replacement>
<replacement>
<token>version < Context.VERSION_ES6</token>
<value>/* HtmlUnit version < #Context.VERSION_ES6 */ false</value>
</replacement>
<replacement>
<token>version == Context.VERSION_DEFAULT</token>
<value>/* HtmlUnit version == #Context.VERSION_DEFAULT */ false</value>
</replacement>
<replacement>
<token>version != Context.VERSION_DEFAULT</token>
<value>/* HtmlUnit version != #Context.VERSION_DEFAULT */ true</value>
</replacement>
<replacement>
<token>version == VERSION_DEFAULT \|\| version >= VERSION_1_3</token>
<value>/* HtmlUnit version == #VERSION_DEFAULT \|\| version >= #VERSION_1_3 */ true</value>
</replacement>
<replacement>
<token>languageVersion < Context.VERSION_ES6</token>
<value>/* HtmlUnit languageVersion < #Context.VERSION_ES6 */ false</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) == Context.VERSION_1_2</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) == #Context.VERSION_1_2 */ false</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) != Context.VERSION_1_2</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) != #Context.VERSION_1_2 */ true</value>
</replacement>
<replacement>
<token>getLanguageVersion\(\) != Context.VERSION_1_2</token>
<value>/* HtmlUnit getLanguageVersion\(\) != #Context.VERSION_1_2 */ true</value>
</replacement>
<replacement>
<token>state.cx.getLanguageVersion\(\) >= Context.VERSION_ES6</token>
<value>/* HtmlUnit state.cx.getLanguageVersion\(\) >= #Context.VERSION_ES6 */ true</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) >= Context.VERSION_ES6</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) >= #Context.VERSION_ES6 */ true</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) < Context.VERSION_ES6</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) < #Context.VERSION_ES6 */ false</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) < Context.VERSION_1_5</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) < #Context.VERSION_1_5 */ false</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) < Context.VERSION_1_6</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) < #Context.VERSION_1_6 */ false</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) <= Context.VERSION_1_7</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) <= #Context.VERSION_1_7 */ false</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) <= Context.VERSION_1_8</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) <= #Context.VERSION_1_8 */ false</value>
</replacement>
<replacement>
<token>cx.getLanguageVersion\(\) >= Context.VERSION_1_8</token>
<value>/* HtmlUnit cx.getLanguageVersion\(\) >= #Context.VERSION_1_8 */ true</value>
</replacement>
<replacement>
<token>env.getLanguageVersion\(\) >= Context.VERSION_ES6</token>
<value>/* HtmlUnit env.getLanguageVersion\(\) >= #Context.VERSION_ES6 */ true</value>
</replacement>
<replacement>
<token>Context.getCurrentContext\(\).version >= Context.VERSION_ES6</token>
<value>/* HtmlUnit Context.getCurrentContext\(\).version >= #Context.VERSION_ES6 */ true</value>
</replacement>
<replacement>
<token>Context.getCurrentContext\(\).getLanguageVersion\(\) >= Context.VERSION_ES6</token>
<value>/* HtmlUnit Context.getCurrentContext\(\).getLanguageVersion\(\) >= #Context.VERSION_ES6 */ true</value>
</replacement>
<replacement>
<token>Context.getContext\(\).getLanguageVersion\(\) < Context.VERSION_ES6</token>
<value>/* HtmlUnit Context.getContext\(\).getLanguageVersion\(\) < #Context.VERSION_ES6 */ false</value>
</replacement>
<replacement>
<token>compilerEnv.getLanguageVersion\(\) == Context.VERSION_1_2</token>
<value>/* HtmlUnit compilerEnv.getLanguageVersion\(\) == #Context.VERSION_1_2 */ false</value>
</replacement>
<replacement>
<token>compilerEnv.getLanguageVersion\(\) < Context.VERSION_1_8</token>
<value>/* HtmlUnit compilerEnv.getLanguageVersion\(\) < #Context.VERSION_1_8 */ false</value>
</replacement>
<replacement>
<token>parser.compilerEnv.getLanguageVersion\(\) >= Context.VERSION_1_8</token>
<value>/* HtmlUnit parser.compilerEnv.getLanguageVersion\(\) >= Context.VERSION_1_8 */ true</value>
</replacement>
<replacement>
<token>&& compilerEnv.getLanguageVersion\(\) >= Context.VERSION_1_8</token>
<value>&& /* HtmlUnit compilerEnv.getLanguageVersion\(\) >= #Context.VERSION_1_8 */ true</value>
</replacement>
<replacement>
<token>parser.compilerEnv.getLanguageVersion\(\) >= Context.VERSION_ES6</token>
<value>/* HtmlUnit parser.compilerEnv.getLanguageVersion\(\) >= #Context.VERSION_ES6 */ true</value>
</replacement>
<replacement>
<token>parser.compilerEnv.getLanguageVersion\(\) < Context.VERSION_1_7</token>
<value>/* HtmlUnit parser.compilerEnv.getLanguageVersion\(\) < #Context.VERSION_1_7 */ false</value>
</replacement>
<replacement>
<token>compilerEnv.getLanguageVersion\(\) >= Context.VERSION_ES6</token>
<value>/* HtmlUnit compilerEnv.getLanguageVersion\(\) >= #Context.VERSION_ES6 */ true</value>
</replacement>
<replacement>
<token>parser.compilerEnv.getLanguageVersion\(\) < Context.VERSION_ES6</token>
<value>/* HtmlUnit parser.compilerEnv.getLanguageVersion\(\) < #Context.VERSION_ES6 */ false</value>
</replacement>
<replacement>
<token>compilerEnv.getLanguageVersion\(\) < Context.VERSION_ES6</token>
<value>/* HtmlUnit compilerEnv.getLanguageVersion\(\) < #Context.VERSION_ES6 */ false</value>
</replacement>
<replacement>
<token>cx.hasFeature\(Context.FEATURE_OLD_UNDEF_NULL_THIS\)</token>
<value>/* HtmlUnit cx.hasFeature\(Context.FEATURE_OLD_UNDEF_NULL_THIS\) */ true</value>
</replacement>
<replacement>
<token>cx.hasFeature\(Context.FEATURE_STRICT_MODE\)</token>
<value>/* HtmlUnit cx.hasFeature\(Context.FEATURE_STRICT_MODE\) */ false</value>
</replacement>
<replacement>
<token>cx.hasFeature\(Context.FEATURE_ENUMERATE_IDS_FIRST\)</token>
<value>/* HtmlUnit cx.hasFeature\(Context.FEATURE_ENUMERATE_IDS_FIRST\) */ true</value>
</replacement>
<replacement>
<token>context.hasFeature\(Context.FEATURE_INTEGER_WITHOUT_DECIMAL_PLACE\)</token>
<value>/* HtmlUnit context.hasFeature\(Context.FEATURE_INTEGER_WITHOUT_DECIMAL_PLACE\) */ false</value>
</replacement>
<replacement>
<token>, useLittleEndian\(\)</token>
<value>/* HtmlUnit , useLittleEndian\(\) */ , true</value>
</replacement>
<replacement>
<token>cx.hasFeature\(Context.FEATURE_INTL_402\)</token>
<value>/* HtmlUnit cx.hasFeature\(Context.FEATURE_INTL_402\) */ true</value>
</replacement>
<replacement>
<token>cx.hasFeature\(Context.FEATURE_DYNAMIC_SCOPE\)</token>
<value>/* HtmlUnit cx.hasFeature\(Context.FEATURE_DYNAMIC_SCOPE\) */ false</value>
</replacement>
<replacement>
<token>Context.getCurrentContext\(\).hasFeature\(Context.FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW\)</token>
<value>/* HtmlUnit Context.getCurrentContext\(\).hasFeature\(Context.FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW\) */ true</value>
</replacement>
<replacement>
<token>cx.hasFeature\(Context.FEATURE_E4X\)</token>
<value>/* HtmlUnit cx.hasFeature\(Context.FEATURE_E4X\) */ false</value>
</replacement>
<replacement>
<token>cx.hasFeature\(Context.FEATURE_ENHANCED_JAVA_ACCESS\)</token>
<value>/* HtmlUnit cx.hasFeature\(Context.FEATURE_ENHANCED_JAVA_ACCESS\) */ false</value>
</replacement>
</replacements>
</configuration>
</execution>
<execution>
<id>replace-test-souce</id>
<phase>process-test-sources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<basedir>${basedir}/src/repackaged-rhino-test/java/org/htmlunit/corejs</basedir>
<regex>true</regex>
<includes>
<include>**/*.java</include>
</includes>
<replacements>
<replacement>
<token>org\.mozilla</token>
<value>org.htmlunit.corejs</value>
</replacement>
<replacement>
<token>org/mozilla</token>
<value>org/htmlunit/corejs</value>
</replacement>
</replacements>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifest>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Url>${project.url}</Url>
<Build-Time>${maven.build.timestamp}</Build-Time>
</manifestEntries>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
<configuration>
<quiet>true</quiet>
<show>protected</show>
<doclint>none</doclint>
<detectLinks>true</detectLinks>
<detectJavaApiLink>true</detectJavaApiLink>
<links>
<link>https://docs.oracle.com/javase/8/docs/api/</link>
</links>
</configuration>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${gpg-plugin.version}</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing.version}</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.10</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
</plugin>
</plugins>
</build>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:HtmlUnit/htmlunit-cssparser.git</connection>
<developerConnection>scm:git:git@github.com:HtmlUnit/htmlunit-cssparser.git</developerConnection>
<url>https://github.com/htmlunit</url>
</scm>
<mailingLists></mailingLists>
<developers>
<developer>
<name>Ronald Brill</name>
<id>rbri</id>
<email>rbri@rbri.de</email>
<url>http://www.wetator.org/</url>
<timezone>+1</timezone>
</developer>
<developer>
<name>Mozilla Rhino Team</name>
<id>MozillaRhinoTeam</id>
</developer>
<developer>
<name>HtmlUnit Team</name>
<id>HtmlUnitTeam</id>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>${junit-launcher.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<!-- for snapshots of our dependencies -->
<repositories>
<repository>
<name>Central Portal Snapshots</name>
<id>central-portal-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>