summaryrefslogtreecommitdiffstats
path: root/build.xml
Commit message (Collapse)AuthorAgeFilesLines
* doc: Fix link to log4j.properties on Github in setup_GOFlorian Zschocke2023-04-031-1/+4
|
* Fix Moxie URL in build.xml (#1441)Garrett Mills2023-02-081-2/+2
|
* Adjust path after moving from "gitblit" to "gitblit-org" on GithubFlorian Zschocke2022-12-091-7/+7
|
* site: Old packages moved from Bintray to CloudsmithFlorian Zschocke2022-02-031-2/+1
| | | | | | | Since Bintray seized operation, the packages for versions 1.4.0 - 1.8.0 have been uploaded to Cloudsmith. Adjust the links appropriately. An attribution is added to comply with Cloudsmith's OSS hosting policy.
* build: Determine release version with simple grepFlorian Zschocke2022-02-011-6/+9
| | | | | | | | | To determine what the release version is to be, use a simple grep over the moxie.build file and cut off the `-SNAPSHOT` part. The moxie tag command doesn't do anything else, either. But the problem is that when using the moxie tag command on the release branch, where the version has already been set to a release version, it would create a second release version, like so: 1.9.2-1.
* build: Allow for updating an existing draft releaseFlorian Zschocke2022-02-011-10/+38
| | | | | | | | | | | When creating a release draft and uploading assets, provision for the case that a draft release already exists. In that case, instead of creating a release, the existing release (changelog) is edited and the assets are deleted before the new built ones are uploaded. This commit also introduces the `${gh.repo}` property in build.xml, so that the Github project could be chosen dynamically. Not really needed, to be honest, but, yeah, whatever.
* build: Add target to determine and report release versionFlorian Zschocke2022-02-011-2/+30
|
* Build: create macro for creating the release process scriptFlorian Zschocke2022-02-011-27/+60
| | | | | | | | | Refactor the creation of the release process script, from `release.template` into a `macrodef`. Add a new target `releaseScript`, so that the release script can be created after the `tagRelease` target was run. This is helpful if the `tagRelease` target is run by a different, earlier process than the actual release creation process.
* docs: Update docker URLFlorian Zschocke2021-11-251-3/+6
| | | | | | | Update the URL to the Gitblit docker image to point to the `gitblit/gitblit` repository, which I now consider the official Docker repository. Also link to the Docker images on the main page.
* docs: Change Ohloh link to Open HubFlorian Zschocke2021-11-251-2/+2
| | | | | Ohloh got acquired by Synopsis and is nor Open Hub. Change the Ohloh link in the links menu to point to Open Hub.
* build: Activate JaCoCo explicitly for Ant buildFlorian Zschocke2020-10-221-2/+9
| | | | | | | | | When building with Ant, instead of Moxie, JaCoCo is not included in the classpath. So explicitly initialise the full `jacocoant.jar` from the `.moxie` repository. For this we had to switch the dependency to use the `nodeps` jar which includes all dependencies.
* build: Create single XML JaCoCo reportFlorian Zschocke2020-10-221-2/+17
| | | | This can be uploaded to coverage services like Coveralls etc.
* Build: Set GitHub org to `gitblit` for release.Florian Zschocke2020-01-311-2/+2
|
* Build: Store release version information in file.Florian Zschocke2020-01-301-2/+16
| | | | | | If requested, by setting a file name in the `versionInfo` property, store release version and tag in a file, for other scripts and programs to pick up.
* Doc: Fix change log in built-in docsFlorian Zschocke2020-01-281-2/+8
| | | | | Use the same templates as in `buildSite` to generate the change log in the built-in documentation.
* Build: Fix output printsFlorian Zschocke2020-01-281-2/+2
|
* Doc: Update built-in docs with missing pages and linksFlorian Zschocke2020-01-271-3/+8
| | | | | | | | Add pages for `fail2ban` and GFS to the `generateDocs` target, so that they also show up in the documentation on GO etc. Also adjust the links to issues and commits. Add the replacement of the download base URL.
* Use GitHub org property in octokit callsFlorian Zschocke2020-01-271-6/+6
|
* Add Twitter link to site overview and built-in docs.Florian Zschocke2020-01-271-0/+1
|
* Site: Change the download URL to GitHubFlorian Zschocke2020-01-271-9/+13
|
* Site: Remove Google Plus idFlorian Zschocke2020-01-271-2/+2
| | | | Google Plus is gone, so linking to it makes no sense anymore.
* Add project property `release.tag` as a global `project.tag`Florian Zschocke2020-01-271-5/+6
| | | | | | | | | | | Add property `release.tag` to keep a generally available property. The `project.tag` was getting used in many places, so I need a global definition for it. The property `project.tag`, defined in the target `tagRelease` could not be reused, since when that target runs, the version is still a SNAPSHOT version. (And properties don't get re-assigned.) So instead a new property `release.tag` is defined, just like `release.name`, which can be only used sensible in a release stage, i.e. after `tagRelease` ran.
* Update the gh-pages branchFlorian Zschocke2020-01-271-0/+9
| | | | | | The site was generated, but updating the gh-pages branch was included in the `publishSite` target. So a new target is added and called, `updateSite`.
* Add deployment of a release to GitHubFlorian Zschocke2020-01-271-9/+159
| | | | | | | | | | | | Add Ant tasks and macros to deploy binaries to GitHub, using GitHub's releases. Adds an Awk script to extract GH flavoured markdown release notes from the release.moxie file. Adds `ok.sh` to the repository so that it is readily available. This is a Bourne shell GitHub API client, used to create a release on GitHub and upload the binaries.
* Add pattern to create links to GitHub commits from release notes etc.Florian Zschocke2019-11-171-1/+2
|
* Change issue links in release history to point to correct GitHub issuesFlorian Zschocke2019-11-171-1/+1
|
* Remove Launcher from Manager and Federation Client.Florian Zschocke2019-11-081-2/+1
| | | | | They will need to be called with the classpath and main class now, instead of simply using the Jar.
* For Java 9+ define the classpath instead of using a Launcher.Florian Zschocke2019-11-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The (moxie and other) Launcher do not work with Java 9 and later anymore. It used to dynamically extend the classpath, misusing an internal interface of the `URLClassLoader`. This is no longer possible since Java 9, which closed that path and does not offer any way to dynamically extend the classpath during runtime. So the choice is between providing one large Jar with everything in it, providing a Jar that has the Jars in `ext` listed explicitly in its manifest, and specifying the classpath on the command line where the `ext` directory can be added and all contained jar files will be put on the classpath. The motivation for the Launcher class was to be able to simply drop new jar files into a directory and they will be picked up at the application start, without having to specify a classpath. We opt for solution three here. This way jar files can still be dropped into the ext directory, albeit the directory needs to be added to the classpath on the command line. Unfortunately using a wildcard is not possible in the manifest file. We change the calls in the script files accordingly. This seems like a good compromise, since no one will run the application manually typing the whole commandline anyway. This also does away with the splash screen, by the way. Again, doesn't seem like a big loss, as I don't think it was ever shown for the Authority. Personally, I am not convinced that it is the best way, because I don't really think that the use case of dropping whatever jar files into the `ext` directory is a valid one that happened a lot. This does not yet fix the client programs, which still use a Launcher. Maybe for them a all-in-one Jar is a better solution. Fixes #1262 Fixes #1294
* Report Java versions used during build and server start.Florian Zschocke2019-11-071-0/+7
| | | | | | | | | | | | | | With three versions about to be supported right now it is getting more important to know which Java version is used when building and testing Gitblit, and which Java version is used to run Gitblit. So have the Moxie build report the javac version, and the JVM version that Moxie is running on. These might be different. The `GitBlitServer` will print the Java version and vendor, so that it gets visible if a user would paste a log output for analysis.
* Zips of recreated hello-world.git and all external repositories for testing.chirontt2019-06-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This hello-world.git repo is created using the native Git for Windows software. Various test classes in the GitBlitSuite test suite require the presence of the hello-world.git repo in github.com/git/ which has been missing, hence causing many test failures in the suite. This recreation of the hello-world.git repo aims to conform to the many test cases' requirements in the suite, and to be checked in as part of the gitblit repo, thus eliminates the requirement of a remote hello-world.git repo during the test run. The repo is now stored is a zip ball in the new src/test/data folder. The hello-world repo's various commit IDs were hard-coded in various test classes. These commit IDs, which must now have new values in the recreated repo, are now extracted out to the src/test/data/hello-world.properties file. The gitblit's build.xml is modified to generate the HelloworldKeys.java file containing the hello-world.properties file's key strings, in similar fashion as the existing generation of the com.gitblit.Keys.java file. And these key strings in HelloworldKeys.java are now used in the various test classes, thus eliminating the hard-coding of the hello-world repo's commit IDs in the test code. During the test run by GitBlitSuite test suite, some repos from GitHub were cloned and became part of the test data. These repos are now zipped to be part of gitblit repo itself, thus eliminating the network fetch at the start of test run which can be slow, especially with the JGit repo cloning which is huge and time consuming. The cloned JGit repo is now zipped and checked in to gitblit, along with the other 4 repos (hello-world, ambition, gitective and ticgit). They will be unzipped during the test suite run and be available in the local file system, thus avoiding the need for some network fetch. Special note on the zipped JGit repo: this repo is big (and growing all the time on GitHub), and takes up about 32MB of disk space after cloning from GitHub. I've made it smaller by resetting HEAD back to a commit of 5 years ago (with git reset --hard <commitId> command), to put it back to roughly where/when the tests were written for it (which is not quite, because there are tons of commit history since which can't be removed.) The local JGit repo is then garbage-collected (with git gc --prune --aggressive) to reduce its size to about 19MB. Zipped it is still 17MB. This is a lot of MBs for a few tests. So the JGit repo is not included in this commit. Fixes #1275
* Specify encoding of javadoc to "utf-8"SilverFox2016-04-081-1/+1
| | | | That will fix build of javadoc in Windows zh-cn (and maybe some other locale). Unknown why javac works well.
* Document edit capability via ProseMirror submodule #974Paul Martin2016-03-271-0/+17
| | | | | | | | | | | | + New docEdit page with links from docPage and docList + Bespoke menu system with full screen edit mode + npm required for building client side scripts + Ant script added for BuildUI which performs npm commands + Update font-awesome to 4.5.0 + Factor out to JGitUtils common code in BranchTicketService for EditFilePage + getTreeEntries + commitIndex + Merge capability for document editing
* fix for #967 filestore menu for all usersPaul Martin2015-12-071-0/+1
| | | | | | + Filestore listing filtered by user view permissions + Configuration help for filestore relocated to website files + Added migration example
* DocumentationJames Moger2015-11-181-5/+0
|
* Added better logging for fail2banEnrico2042015-08-101-0/+1
|
* add version number to built jar filesJoel Johnson2015-06-291-1/+1
|
* Merge release 1.6.2James Moger2014-10-281-0/+4
|\
| * DocumentationJames Moger2014-10-271-0/+4
| |
* | Adopt chain-loading properties as the default setupJames Moger2014-10-271-8/+8
| |
* | Merged #80 "Replace Dagger with Guice"James Moger2014-07-031-4/+6
|\ \
| * | Adjust builds for appropriate dependenciesJames Moger2014-07-031-4/+6
| | |
* | | Update to Moxie 0.9.4James Moger2014-07-031-1/+1
|/ /
* / Gitblit GO artefacts use release name for root directory.Alex Lewis2014-06-301-19/+24
|/
* Fix WAR web.xml generation regressionJames Moger2014-06-171-8/+5
|
* Update build script for git-flow releasesJames Moger2014-06-161-1/+23
|
* DocumentationJames Moger2014-06-091-2/+4
|
* Add link to Gitblit's Docker file in the Docker registryJames Moger2014-06-091-0/+2
|
* Update to Moxie 0.9.2James Moger2014-06-091-1/+1
|
* Switch to basic ant copy filter for web.xmlJames Moger2014-06-091-4/+18
|
* Simplified repository creation with a NewRepositoryPageJames Moger2014-06-031-0/+6
|