Giter Site home page Giter Site logo

himanshu371 / example-deploy-remove-force-components Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alan-morey/example-deploy-remove-force-components

0.0 0.0 0.0 3.43 MB

Example of how do deploy changes that include adding, updating and removing components in one step with the Force.com Migration Tool

Apex 100.00%

example-deploy-remove-force-components's Introduction

This example is in response to the question on Salesforce StackExchange How can I deploy and remove components in one step with the ant migration tool?. Metadata component additions and updates should be included in the package.xml, component removals should be included in destructiveChanges.xml.

##Instructions

  1. Configure your <USERNAME> and <PASSWORD> in the build.properties
  2. Deploy the initial-package, this just deploys 2 Apex classes, one to be updated and the other to be deleted:
$> ant deploy-initial-package
Buildfile: /home/alan/sf-ant-test/build.xml

deploy-initial-package:
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request Id for the current deploy task: 09Sf0000001BfvdEAC
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: Completed
[sf:deploy] Finished request 09Sf0000001BfvdEAC successfully.

BUILD SUCCESSFUL
Total time: 1 minute 33 seconds
  1. Verify AntTest_Updated.cls and AntTest_ToBeRemoved.cls now exist in your Org.
  2. Deploy the add-update-delete-package:
$> ant deploy
Buildfile: /home/alan/sf-ant-test/build.xml

deploy:
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request Id for the current deploy task: 09Sf0000001Bg17EAC
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: Completed
[sf:deploy] Finished request 09Sf0000001Bg17EAC successfully.

BUILD SUCCESSFUL
Total time: 1 minute 34 seconds
  1. Verify the results:
  • AntTest_Added should now exist
  • AntTest_Updated should have a method called newMethod added.
  • AntTest_ToBeRemoved should no longer exist

example-deploy-remove-force-components's People

Contributors

alan-morey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.