Examples of StartArtifactPublishEvent


Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

            PublishEventsTest test = (PublishEventsTest) IvyContext.getContext().peek(
                PublishEventsTest.class.getName());
            assertTrue("event is of correct concrete type",
                event instanceof StartArtifactPublishEvent);
            StartArtifactPublishEvent startEvent = (StartArtifactPublishEvent) event;

            // verify that the artifact being publish was in the expected set. set the
            // 'currentTestCase'
            // pointer so that the resolver and post-publish trigger can check against it.
            Artifact artifact = startEvent.getArtifact();
            assertNotNull("event defines artifact", artifact);

            PublishTestCase currentTestCase = (PublishTestCase) test.expectedPublications
                    .remove(artifact.getId());
            assertNotNull("artifact " + artifact.getId() + " was expected for publication",
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

    private void publish(Artifact artifact, File src, DependencyResolver resolver, boolean overwrite)
            throws IOException {
        IvyContext.getContext().checkInterrupted();
        // notify triggers that an artifact is about to be published
        eventManager
                .fireIvyEvent(new StartArtifactPublishEvent(resolver, artifact, src, overwrite));
        boolean successful = false; // set to true once the publish succeeds
        try {
            if (src.exists()) {
                resolver.publish(artifact, src, overwrite);
                successful = true;
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

        File src = new File(IvyPatternHelper.substitute(srcArtifactPattern, artifact));
       
        IvyContext.getContext().checkInterrupted();
        //notify triggers that an artifact is about to be published
        eventManager.fireIvyEvent(
            new StartArtifactPublishEvent(resolver, artifact, src, overwrite));
        boolean successful = false; //set to true once the publish succeeds
        try {
            if (src.exists()) {
                resolver.publish(artifact, src, overwrite);
                successful = true;
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

        public void progress(IvyEvent event) {
           
            PublishEventsTest test = (PublishEventsTest)IvyContext.getContext().peek(PublishEventsTest.class.getName());
            assertTrue("event is of correct concrete type",
                        event instanceof StartArtifactPublishEvent);
            StartArtifactPublishEvent startEvent = (StartArtifactPublishEvent)event;
           
            //verify that the artifact being publish was in the expected set.  set the 'currentTestCase'
            //pointer so that the resolver and post-publish trigger can check against it.
            Artifact artifact = startEvent.getArtifact();
            assertNotNull("event defines artifact", artifact);
            PublishTestCase currentTestCase = (PublishTestCase)test.expectedPublications.remove(artifact.getId());
            assertNotNull("artifact " + artifact.getId() + " was expected for publication", currentTestCase);
            assertFalse("current publication has not been visited yet", currentTestCase.preTriggerFired);
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

    private void publish(Artifact artifact, File src,
            DependencyResolver resolver, boolean overwrite) throws IOException {
        IvyContext.getContext().checkInterrupted();
        //notify triggers that an artifact is about to be published
        eventManager.fireIvyEvent(
            new StartArtifactPublishEvent(resolver, artifact, src, overwrite));
        boolean successful = false; //set to true once the publish succeeds
        try {
            if (src.exists()) {
                resolver.publish(artifact, src, overwrite);
                successful = true;
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

    private void publish(Artifact artifact, File src,
            DependencyResolver resolver, boolean overwrite) throws IOException {
        IvyContext.getContext().checkInterrupted();
        //notify triggers that an artifact is about to be published
        eventManager.fireIvyEvent(
            new StartArtifactPublishEvent(resolver, artifact, src, overwrite));
        boolean successful = false; //set to true once the publish succeeds
        try {
            if (src.exists()) {
                resolver.publish(artifact, src, overwrite);
                successful = true;
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

    private void publish(Artifact artifact, File src,
            DependencyResolver resolver, boolean overwrite) throws IOException {
        IvyContext.getContext().checkInterrupted();
        //notify triggers that an artifact is about to be published
        eventManager.fireIvyEvent(
            new StartArtifactPublishEvent(resolver, artifact, src, overwrite));
        boolean successful = false; //set to true once the publish succeeds
        try {
            if (src.exists()) {
                resolver.publish(artifact, src, overwrite);
                successful = true;
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

        public void progress(IvyEvent event) {
           
            PublishEventsTest test = (PublishEventsTest)IvyContext.getContext().peek(PublishEventsTest.class.getName());
            assertTrue("event is of correct concrete type",
                        event instanceof StartArtifactPublishEvent);
            StartArtifactPublishEvent startEvent = (StartArtifactPublishEvent)event;
           
            //verify that the artifact being publish was in the expected set.  set the 'currentTestCase'
            //pointer so that the resolver and post-publish trigger can check against it.
            Artifact artifact = startEvent.getArtifact();
            assertNotNull("event defines artifact", artifact);
            PublishTestCase currentTestCase = (PublishTestCase)test.expectedPublications.remove(artifact.getId());
            assertNotNull("artifact " + artifact.getId() + " was expected for publication", currentTestCase);
            assertFalse("current publication has not been visited yet", currentTestCase.preTriggerFired);
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

        IvyContext.getContext().checkInterrupted();
        File src = new File(IvyPatternHelper.substitute(srcArtifactPattern, artifact));
       
        //notify triggers that an artifact is about to be published
        eventManager.fireIvyEvent(
            new StartArtifactPublishEvent(resolver, artifact, src, overwrite));
        boolean successful = false; //set to true once the publish succeeds
        try {
            if (src.exists()) {
                resolver.publish(artifact, src, overwrite);
                successful = true;
View Full Code Here

Examples of org.apache.ivy.core.event.publish.StartArtifactPublishEvent

        public void progress(IvyEvent event) {
           
            PublishEventsTest test = (PublishEventsTest)IvyContext.getContext().peek(PublishEventsTest.class.getName());
            assertTrue("event is of correct concrete type",
                        event instanceof StartArtifactPublishEvent);
            StartArtifactPublishEvent startEvent = (StartArtifactPublishEvent)event;
           
            //verify that the artifact being publish was in the expected set.  set the 'currentTestCase'
            //pointer so that the resolver and post-publish trigger can check against it.
            Artifact artifact = startEvent.getArtifact();
            assertNotNull("event defines artifact", artifact);
            PublishTestCase currentTestCase = (PublishTestCase)test.expectedPublications.remove(artifact.getId());
            assertNotNull("artifact " + artifact.getId() + " was expected for publication", currentTestCase);
            assertFalse("current publication has not been visited yet", currentTestCase.preTriggerFired);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.