mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-03 23:31:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "1.10.13",
 | 
						|
    "description": "Apache Ant is a Java library and command-line tool for compiling, assembling, testing and running Java and non-Java applications.",
 | 
						|
    "homepage": "https://ant.apache.org/",
 | 
						|
    "license": "Apache-2.0",
 | 
						|
    "suggest": {
 | 
						|
        "JDK": "java/openjdk"
 | 
						|
    },
 | 
						|
    "url": "https://www.apache.org/dist/ant/binaries/apache-ant-1.10.13-bin.zip",
 | 
						|
    "hash": "sha512:347e964db73d1f8e9fe110f135625920e09c8c9997e9950c405cfeec60b70750044a91ef0535d76d6f8e023de0788f2619be76fd91b7a80be9a6b569a16cc3e8",
 | 
						|
    "extract_dir": "apache-ant-1.10.13",
 | 
						|
    "pre_install": [
 | 
						|
        "# Record built-in libs in builtin_libs.json",
 | 
						|
        "$builtin_libs = Get-ChildItem \"$dir\\lib\" | Select -ExpandProperty Name",
 | 
						|
        "$builtin_libs | ConvertTo-Json | Out-File \"$dir\\lib\\builtin_libs.json\" -Encoding Ascii",
 | 
						|
        "# Copy user libs to $dir",
 | 
						|
        "if (Test-Path \"$persist_dir\\lib\") {",
 | 
						|
        "    Get-ChildItem \"$persist_dir\\lib\" | Select -ExpandProperty Name | ForEach-Object {",
 | 
						|
        "        if (!(Test-Path \"$dir\\lib\\$_\")) { Copy-Item \"$persist_dir\\lib\\$_\" \"$dir\\lib\" }",
 | 
						|
        "    }",
 | 
						|
        "}"
 | 
						|
    ],
 | 
						|
    "env_add_path": "bin",
 | 
						|
    "env_set": {
 | 
						|
        "ANT_HOME": "$dir"
 | 
						|
    },
 | 
						|
    "uninstaller": {
 | 
						|
        "script": [
 | 
						|
            "# Only persist libs that were added by the user, but not built-in ones",
 | 
						|
            "ensure \"$persist_dir\\lib\" | Out-Null",
 | 
						|
            "$builtin_libs = Get-Content \"$dir\\lib\\builtin_libs.json\" | ConvertFrom-Json",
 | 
						|
            "Get-ChildItem \"$dir\\lib\" -Exclude builtin_libs.json | Select -ExpandProperty Name | ForEach-Object {",
 | 
						|
            "    if (!($builtin_libs -contains \"$_\")) { Copy-Item \"$dir\\lib\\$_\" \"$persist_dir\\lib\" }",
 | 
						|
            "}"
 | 
						|
        ]
 | 
						|
    },
 | 
						|
    "checkver": {
 | 
						|
        "url": "https://ant.apache.org/bindownload.cgi",
 | 
						|
        "regex": "Currently, Apache Ant (?:[\\d.]+ and )?([\\d.]+) (?:is|are) the best"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "url": "https://www.apache.org/dist/ant/binaries/apache-ant-$version-bin.zip",
 | 
						|
        "hash": {
 | 
						|
            "url": "$url.sha512"
 | 
						|
        },
 | 
						|
        "extract_dir": "apache-ant-$version"
 | 
						|
    }
 | 
						|
}
 |