Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 399365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:50:22+00:00 2026-05-12T16:50:22+00:00

Is there a way to copy files to a (temp directory on a) stageing

  • 0

Is there a way to copy files to a (temp directory on a) stageing server only if the build and the unit tests succeed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:50:22+00:00Added an answer on May 12, 2026 at 4:50 pm

    Note that my answer is Maven2 oriented, so I am not completly sure that it will help you to solve your problem, but maybe be helpful for Java developers…

    With Maven2, a build is failing if any unit test is failing (however, you have arguments to make the build successfull even with test failures).

    You can then attach an Ant task that will copy some files into a directory. If you attach this Ant task in the package phase, it will be run after the compilation and the test phase, and then will be executed only if these steps are successfull.

    Note that if you want to deploy your artifact (i.e. “copy” the WAR into a Tomcat server, for example), there are plugin for that (check Cargo plugin for example).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Cocoa, is there any way to copy all the files in a directory
Hey all. Is there a way to copy only a portion of a single
Is there a way to copy changed files from TFS to multiple live web
Is there any way to copy files from the adb shell to another place
In Xcode there are the Copy Files Build Phases that let you copy files
Is there a way to modify/tell dired to copy files asynchronously? If you mark
Is there a way to have visual studio automatically copy files I save in
In linux or freebsd, Is there a way to copy all files under a
Is there a way to copy an entire directory to the output directory in
Is there a way to copy msi log file in scope of installation procces

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.