in reply to Re^3: UMMF perl script execution..
in thread UMMF perl script execution..

Actually, you can say that I am clueless. And that is the reason why I had earlier mentioned that i don't quite get the relevance of this solution to my problem.

I am not able to understand the syntax/usage of patch; I am not able to find any help docs on the patch/gnuwin32 website either.

So, I am not sure what exactly I am doing wrong.

From the snippet you had shown, it looked like the patch utility was trying to patch in the diff between the new version of UMMF into the older version of the same. But i have doubts around that - if we have a new version of UMMF, then hwy not just use it? Why should we patch in the diff into the older version?

please help.

Replies are listed 'Best First'.
Re^5: UMMF perl script execution..
by Anonymous Monk on Aug 02, 2011 at 14:30 UTC

    I am not able to understand the syntax/usage of patch; I am not able to find any help docs on the patch/gnuwin32 website either

    START + Programs + GnuWin32 + Patch + patch-man.pdf

    "C:\Program Files\GnuWin32\man\pdf\patch-man.pdf"

    http://www.gnu.org/software/diffutils/manual/#Invoking-patch

    patch

    So, I am not sure what exactly I am doing wrong.

    You're not reading closely, and you're not copy/paste-ing

    cd UMMF-1.02
    patch -p1 < path/to/patchfile
    

    we have .. should we ...

    Have you self-replicated? How'd you do that!?

    :)  :P :D ;)
      patch --help even

        Thanks for the reply. It worked for me. But while i ran the code with a sample xmi file am getting some error. Can you please help me out.


        This is what i tried to run

        D:\UML Test>perl c:\Perl\bin\ummf.pl -e perl "d:\UML Test" "Z:\Softwar +e\Perl Mod ules\test UML Design\test.xmi"


        Below is the error am getting


        ules\test UML Design\test.xmi" ummf: reading d:\UML Test ummf: reading d:\UML Test : DONE ummf: reading Z:\Software\Perl Modules\test UML Design\test.xmi UMMF: XMI: parsing UMMF: XMI: parsing: DONE UMMF: XMI: preparing UMMF: XMI: preparing: DONE UMMF: XMI: create instances UMMF: XMI: create instances: DONE UMMF: XMI: initialize instances UMMF: XMI: Warning: UMMF::UML_1_5::Foundation::Core::DataType cannot d +o set_href UMMF: XMI: initialize instances: DONE ummf: reading Z:\Software\Perl Modules\test UML Design\test.xmi : DONE Use of uninitialized value $_ in concatenation (.) or string at C:/Per +l/lib/UMMF /XForm/Merge.pm line 124. Use of uninitialized value $_ in concatenation (.) or string at C:/Per +l/lib/UMMF /XForm/Merge.pm line 124. [ UMMF::XForm::Merge=HASH(0x142f4b4) ] [ ] [ UMMF::UML_1_5::Model_Management::Model=HASH(0x15a3f94) ] [ ] [ UMMF::UML_1_5::Model_Management::Model=HASH(0x15a3f94) ] at C:/Perl +/lib/UMMF/ XForm/Merge.pm line 124. Can't call method "ownedElement" on an undefined value at C:/Perl/lib/ +UMMF/Core/ Util.pm line 568.

        Hello sir, We are eagerly waiting for your reply regarding UMMF. Please reply us soon