You need to sign in to do that
Don't have an account?
Randy Schultz
ant deploy error username cannot be empty
The build.xml seems to completely ingore that a properties file esists. What is missing. The build and properties files are siblings. The setting of the param is sf.username = justme@curious-otter-myorg.com
no qoutes, space after the equals sign, (terribly fommated file it should be a standard). It would be nice to know the requirements of where these two file need to be stored in relation to the package.xml adn the call to the ant tool.
no qoutes, space after the equals sign, (terribly fommated file it should be a standard). It would be nice to know the requirements of where these two file need to be stored in relation to the package.xml adn the call to the ant tool.
param($a, $b)
Write-Host " set the user and password "
Write-Host " User " $a
$file = "deploy\build.properties"
if (-not(Test-Path "deploy")){
Write-Host " deploy folder not found"
return
}
$Msg = @()
$Msg +="sf.username =$a"
$Msg +="sf.password =$b"
$Msg +="sf.serverurl =https://login.salesforce.com"
$Msg +="sf.maxPoll =20"
$Msg | Out-File -Encoding ASCII $file