You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

signit.xml 2.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <project name="signit">
  17. <!-- use this property file to enter your default key id -->
  18. <property file="${user.home}/gnupg.properties"/>
  19. <property name="bouncycastle.jdk" value="15on"/>
  20. <property name="bouncycastle.version" value="1.49"/>
  21. <taskdef resource="org/apache/commons/openpgp/ant/antlib.xml">
  22. <classpath>
  23. <pathelement
  24. location="${user.home}/.m2/repository/org/bouncycastle/bcprov-jdk${bouncycastle.jdk}/${bouncycastle.version}/bcprov-jdk${bouncycastle.jdk}-${bouncycastle.version}.jar"/>
  25. <pathelement
  26. location="${user.home}/.m2/repository/org/apache/commons/commons-openpgp/1.0-SNAPSHOT/commons-openpgp-1.0-SNAPSHOT.jar"/>
  27. <pathelement
  28. location="${user.home}/.m2/repository/org/bouncycastle/bcpg-jdk${bouncycastle.jdk}/${bouncycastle.version}/bcpg-jdk${bouncycastle.jdk}-${bouncycastle.version}.jar"/>
  29. </classpath>
  30. </taskdef>
  31. <condition property="gpg.dir" value="${user.home}/AppData/Roaming/gnupg">
  32. <os family="windows"/>
  33. </condition>
  34. <property name="gpg.dir" location="${user.home}/.gnupg"/>
  35. <signer secring="${gpg.dir}/secring.gpg"
  36. pubring="${gpg.dir}/pubring.gpg" password="${password}" keyid="${keyid}">
  37. <fileset dir="../java-repository">
  38. <include name="**/*.jar"/>
  39. <include name="**/*.pom"/>
  40. </fileset>
  41. <fileset dir="../distribution">
  42. <include name="**/*.bz2"/>
  43. <include name="**/*.zip"/>
  44. <include name="**/*.gz"/>
  45. </fileset>
  46. </signer>
  47. </project>