Exemplo n.º 1
0
	def testWriteBuildfileFTP(self):
		print "TestAntCopyProject : testWriteBuildfileFTP"
		project = AntCopyProject("sample_properties/testAntFTPProject.xml", "ftp")
		project.setName("ftp-project")
		project.copyFile("ftp://build.gateway.michaelpage.local/TempBookingParentPOM/trunk"
						, "TempBookingApplicationEar-tempbookingbuild-3.0.0-SNAPSHOT-build.279.ear"
						, "tmp/package-root/TempBookingApplication")
		project.writeBuildfile()
Exemplo n.º 2
0
	def testWriteBuildfile(self):
		print "TestAntCopyProject : writeBuildfile"
		project = AntCopyProject("sample_properties/testAntCopyProject.xml", "file")
		project.setName("written-project")
		self.assertEqual(len(self.deployables), 2)
		processed = 0
		project.deleteDir("tmp/package-home")
		for deployable in self.deployables:
			processed += 1
			project.copyDir("d:/repo/" + deployable["repo-path"], "/**/*.*",
							"temp/deployment-root/" + deployable["name"] + "_" + deployable["version"])
		self.assertEqual(processed, 2)
		project.property(name="package.home", value="tmp/package-home")
		project.updateConfigProps("config.properties", "package.home", "tmp/package-home")
		project.createSetEnvFile("PACKAGE_HOME", "/tmp/package-home")
		project.writeBuildfile()