Questions tagged [ant]

Apache Ant is a software tool for automating software build processes.

Filter by
Sorted by
Tagged with
4
votes
1answer
449 views

More than 1 developer package named 'MyPackage' exists in this organization. Please rename one of packages so that it has a unique name

First I was getting this error when tried to import the package from XML using Metadata API (I use force.com CLI for that). The package with this name really exists in the organization, but it ...
4
votes
2answers
4k views

Apex class has Batchable or Future jobs pending or in progress

I am deploying to production using the Ant migration tool. Every class is reporting the error: Apex class has Batchable or Future jobs pending or in progress Even classes such as StringUtils and such ...
3
votes
1answer
1k views

Exclude files on ant deployment

What if I want all the classes EXCEPT a few? For example, if I have a scheduled batch that definitely won't deploy, how would I say "not that" but not have to manually name all the other ones? ...
3
votes
1answer
207 views

ANT Deployment for SFDC

Is there a way to ignore package.xml while deploying changes via ANT in Salesforce.? We only want the ANT engine to consider the folder structure mentioned within the root directory of the deploy ...
3
votes
2answers
505 views

Is it possible to update managed package contents using Force.com Migration Tool (ANT Tool)

Is it possible to update managed package contents like apex class/trigger of an installed instance of a package authored by another publisher using Ant Tool using deploy target? If then how to give ...
23
votes
4answers
16k views

best way to delete unused apex classes and triggers in production [duplicate]

We currently have around 20 apex classes and 5 triggers which are not used in our production org. We want to delete them in our production instance. We dont have ant scripts ready yet to be used for ...
3
votes
0answers
747 views

Error while deploying to a sandbox using ant

I am trying to deploy config data from one sandbox to another sandbox using ant. I am getting 2 errors always. Error: Could not resolve list view column: IDEA.IDEA_THEME (line 78, column 16) We dont ...
6
votes
1answer
747 views

Deploying Metadata to sandboxes using ant build

We are using subversion to commit all our meta data changes from our sandboxes. When we deploy to a testing environment, we want to get only the changed meta data which we can get from svn and ...
2
votes
4answers
3k views

Correct sequence to setup ant to deploy salesforce metadata

We are in the process of setting up ant to deploy our configuration changes across our environments to production. We are using changesets at the moment. We use standard objects, custom objects, ...
2
votes
1answer
2k views

Error in deploying letterheads using ant

I tried to deploy letterheads metadata file to a development sandbox using ant build sf deploy. The deploy task fails with an error message stating that no Document named Letterhead_Logos/...
15
votes
3answers
16k views

Why am I getting a not in package.xml error on custom fields when the custom object is in my package.xml?

Question Doing a deployment with ANT that includes some apex and a custom object. However, when I test deploy I'm getting errors about fields not being in the package.xml. Has something changed ...
1
vote
1answer
395 views

how to building ant scripts which would bypass apex scheduled jobs

We are in the process of building ant scripts for our deployments. We have scheduled apex jobs which run every 3 minutes to process some functions and currently our deploy targets are failing because ...
9
votes
1answer
10k views

How to deploy approval process using ANT/Eclipse in salesforce

I am trying to deploy approval process to cutomer Production orgs. It is difficult to do the manual creation of approval in each customer org. Anybody know this can be done by ANT/Eclipse ? Thanks in ...
10
votes
1answer
3k views

Is it possible to deploy workflow rules and field update actions which reference PersonAccount record types?

I am performing a deployment from one sandbox to another using ant. The sandboxes both have PersonAccount functionality enabled. The source org has a PersonAccount record type with the name of HCP and ...
5
votes
1answer
598 views

How to detect ant retrieve failure in script?

Question Is there a way to detect if an ant retrieve call fails due to a login issue? Background I've got a pretty basic bash script that uses ant to retrieve the latest changes from our production ...
9
votes
2answers
2k views

Ant Migration Tool - Not retrieving Task fields

I'm not able to retrieve any custom fields on the Task object. I'm able to get Contact custom fields fine. These fields are included in a managed package, but I don't understand why the Contact ...
12
votes
2answers
4k views

Execute an Apex class using Ant build script

We are in the process of setting up automatic build using Ant. We want to do some start up activities like read an xml file which is stored as a static resource and verify it with a custom object data ...
10
votes
2answers
1k views

Unable to deploy code to Sandbox as installed Managed Package test methods are failing

I am using ant tool to deploy code to Sandbox which has Managed package test methods failures. Build error shows the validation rule message. Build is executed by Jenkins schedule job, so turning on ...
3
votes
2answers
378 views

Ant Retrieve Call for Layouts Throwing Java.Io.IOException: File name Directory name invalid

I wanted to have Automated Backup of Salesforce Environment which includes all of the code and configuration we get through the Eclipse project and then meta data Selection. I used ANT scripts and ...
4
votes
1answer
1k views

Ant build script to commit files to subversion automatically every day

We have a development environment where we do not have a direct way to access our subversion repository within our network. SO we need to login to a vm machine and check out the code. To avoid this, ...
5
votes
1answer
876 views

Ant migration tool and own required test coverage value

Does somebody know about the following scenario: I need to - calculate an apex code coverage during deployment with Migration tool - give the result on console, - after that I need to decide about ...
6
votes
2answers
3k views

Unable to use destructiveChanges.xml with multiple developers

(Sorry, long post) We have a team of 4 developers, each with their own DE org We are struggling with propagating destructive changes between orgs. From our reading of the docs, we should be able to ...
4
votes
4answers
1k views

Profile Login IP Ranges via API

I need to analyze the login ip ranges for profiles across multiple orgs on a frequent basis. Previously I've been accomplishing this with an Ant retrieve call to get all the profiles and parsing the ...
7
votes
2answers
3k views

How to retrieve action overrides?

Question Is there any trick to retrieving action overrides via the metadata api? Background The docs seem to indicate this is straightforward, just use object dot notation and a type of ...

1 4 5 6 7 8