jakecobb / htmlunit-core-js

Tests and packaging for htmlunit-rhino-fork

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project is a Rhino fork, maintained to support features needed by HtmlUnit.

It is split into two projects "htmlunit-rhino-fork", which contains the minimal changes to rhino,
and "htmlunit-core-js" which has the test cases and packaging.

Notice that "org.mozilla.*" is renamed to "net.sourceforge.htmlunit.corejs.*"

Steps:
    - Clone the two projects into sibling folders
    - Create eclipse project for "htmlunit-rhino-fork", with 'src' 'testsrc' and 'toolsrc' folder as source folders,
      while having build/classes as the output folder
    - In "htmlunit-rhino-fork", run:
        - git remote add upstream https://github.com/mozilla/rhino.git
        - git fetch upstream
        
        With proxy:
        - git config --global http.proxy http://proxyhost:port
        
        To unset proxy:
        - git config --global --unset http.proxy

- To generate the JARs:
      ant jar-all

- Deploy snapshot:
  - Ensure that you have pgp installed and that you create own keys, see
      https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven

  - Configure your Maven settings.xml, see
      https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide

  - Run:
      ant deploy-snapshot

	  With proxy:
	  ant -autoproxy deploy-snapshot
	  
- To release:
  1- Change version in pom.xml and build.xml
  2- Make sure rhinoDiff.txt is updated
  3- ensure that you have pgp installed and that you create own keys (see
      https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven)

  4- Configure your Maven settings.xml, see
      https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide

  5- Deploy the release files into Sonatype staging repository:
      ant jar-all

      - for 2.15, run the below:

      mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=pom.xml -Dfile=target/htmlunit-core-js-2.15.jar
      mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=pom.xml -Dfile=target/htmlunit-core-js-2.15-sources.jar -Dclassifier=sources
      mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=pom.xml -Dfile=target/htmlunit-core-js-2.15-javadoc.jar -Dclassifier=javadoc

      You may need to get latest version of gpg (v2) if the uploading hangs.

  6- Go to https://oss.sonatype.org/index.html, "stagingRepositories" and close, then release the repository

TODO:
    - GPG automated from ant (in "bundle" target), if possible

  7- To tag:
      git tag -s core-js-2.15 -m "core-js-2.15 released"
      git push --tags

About

Tests and packaging for htmlunit-rhino-fork

License:Other