I wrote the test:
RemoveActivityWriteCurnitTest in PLR

scott, turadg check it out and see whats up. i am removing an activity just
like i do in the authoring tool.
the results here are the same as i get in the authoring tool. print out is
fine, writtren out curnit hasn't change.

-Tony

On 4/23/07, Anthony Perritano <[EMAIL PROTECTED]> wrote:
>
> ok. a good test would be:
>
> create and write a curnit out with with something like PasBuilderNote.
>
> open it and remove an activity
>
> rewrite the curnit to a file
>
> yay?
>
> -Tony
>
> On 4/23/07, Turadg <[EMAIL PROTECTED]> wrote:
> >
> >
> > I think you're doing everything correctly.  Sounds like a bug.  Can
> > you make a JUnit test isolating the problem?  Then Scott or I can work
> > on the sail-core code to get the test to pass.
> >
> >
> > On Apr 22, 4:38 pm, "Anthony Perritano" < [EMAIL PROTECTED]> wrote:
> > > when i remove activities and steps from a project in the authoring
> > tool the
> > > pod tree is updated and so is the bean tree. however when i go to
> > write the
> > > curnit out in a "Save"  it does not write the changes. the deleted
> > > activities continue to be written out.
> > >
> > > i pass in a rootPod to the writeCurnit with two activites deleted and
> > one
> > > save, i print the rootpod tree:
> > > [EMAIL PROTECTED]
> > > \   [EMAIL PROTECTED]
> > >     [EMAIL PROTECTED]
> > >     \   Activity: act 3
> > >         [EMAIL PROTECTED]
> > >         \   new generic
> > >
> > > this is correct.
> > >
> > > however when i pass that rootPod that i printed out to writeCurnit, it
> > > writes out the original pod tree
> > > private void saveToFile(CurnitUuid curnitId, String curnitTitle, Pod
> > > rootPod, File outputFile) throws Exception {
> > >
> > >         SailBeanUtils.printTree(System.out, 0, rootPod);
> > >
> > >         File n = new File( outputFile.getAbsoluteFile() + ".jar");
> > >
> > >         BinaryUtils.writeCurnit(curnitId, curnitTitle, rootPod, new
> > > FileOutputStream(n));
> > >
> > >         SailBeanUtils.printTree(System.out , 0, rootPod);
> > >             //CurnitArchive.writeArchive(curnit, new
> > > FileOutputStream(outFile));
> > >
> > >     }
> > >
> > > any ideas? is there a step that i need to do that i am missing???????
> > why
> > > does the pod tree print out correct but written to a file incorrectly?
> > >
> > > -Tony
> >
> >
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to