Search the web
Sign In
New User? Sign Up
aegis-users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[Aegis] feature request: assignable vars in aesub(5)   Message List  
Reply | Forward Message #6307 of 6416 |
If I have a template like this:

/**
* This is test code
*
* Copyright (C) $cy. McNeill Communications, LLC.
*
* @author $dev
* @version $date
*/

package ${tdir 5 ${d ${tdir 1 $filename}}};

import dev.thistest.core.*;

public class ${text ${basename $filename}} extends TestSet
{
@TestCase
public void testCtor()
{
${subst Test '' ${text ${basename $filename}}} ${dc
${subst Test '' ${text ${basename $filename}}}}=new ${subst Test ''
${text ${basename $filename}}}();

assertTrue(${dc ${subst Test '' ${text ${basename
$filename}}}}!=null);
}
}

it would sure be a lot more easy to read if I can create new aesub
expansions for example:

${assign className ${text ${basename $filename}}
**
* This is test code
*
* Copyright (C) $cy. McNeill Communications, LLC.
*
* @author $dev
* @version $date
*/

package ${tdir 5 ${d ${tdir 1 $filename}}};

import dev.thistest.core.*;

public class $className extends TestSet
{
@TestCase
public void testCtor()
{
$className ${dc $className}=new ${className}();

assertTrue(${dc $className}!=null);
}
}

Even though the above are not quite right (it doesn't know how to
convert dir separtors into the dot'ed notation that Java wants [but that
is trivial]) both would produce something like this:

/**
* This is test code
*
* Copyright (C) 2009. McNeill Communications, LLC.
*
* @author aryeh
* @version Sun Jul 5 17:52:03 2009
*/

package test;

import dev.thistest.core.*;

public class TestMyClass extends TestSet
{
@TestCase
public void testCtor()
{
MyClass myclass=new MyClassl();

assertTrue(myclass!=null);
}
}

How hard is this to aedd to aesub(5)? Oh an other thing would be a
macro to convert to "camel" notation i.e. thisIsACamel or ThisIsACamel
(user should be allowed to say which one to use with the first being
default?)
_______________________________________________
Aegis-users mailing list
Aegis-users@...
http://www.auug.org.au/mailman/listinfo/aegis-users



Sun Jul 5, 2009 9:54 pm

aryeh.friedman@...
Send Email Send Email

Forward
Message #6307 of 6416 |
Expand Messages Author Sort by Date

If I have a template like this: /** * This is test code * * Copyright (C) $cy. McNeill Communications, LLC. * * @author $dev * @version $date */ package ${tdir...
Aryeh M. Friedman
aryeh.friedman@...
Send Email
Jul 5, 2009
9:55 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help