cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
james_decosta
Level 9

Am i right when i call up.getValue

hi,,
i am writing custom code for deleting all the files and folders which are getting cached but for it i need to pass the path of one of the files of $USER_INSTALL_DIR$
say $USER_INSTALL_DIR$$/$yyyy , this yyyy folder is what i want to get in the string . And then pass it through some means.
Am i right when i call
up.getValue("$USER_INSTALL_DIR$$/$YYYY$");
where up is UninstallerProxy.
Labels (1)
0 Kudos
(6) Replies
Yves_Kreis
Level 7

5 $ signs can't be correct; you always need a pair number of $ signs.

Best Regards,
Yves
0 Kudos
james_decosta
Level 9

hi
, how can i get $USER_INSTALL_DIR$ value in the uninstall() method.
can i use up.getValue()
or how shall i call ip.getsubstitute("$USER_INSTALL_DIR$");
aNALOGOUS to (ip.getsubstitute("$USER_INSTALL_DIR$") in the uninstall () method in the execute custom code.
james
0 Kudos
Yves_Kreis
Level 7

up.getValue("$USER_INSTALL_DIR$$/$$YYYY$");

or
up.getValue("$USER_INSTALL_DIR$$/$YYYY");

should work.

Best Regards,
Yves
0 Kudos
james_decosta
Level 9

hi,
i am calling up.getValue() in the uninstall method and writing its value to a file but it does not contain anything
.
My code is given below but i dont know why its not happening.
My aim is to store the value of an application server say jboss in a string.
String toBeManipulated=up.getValue("$USER_INSTALL_DIR$$/$jboss");
And then delete all the subfolders,folders and files under the jboss folder
which contains some files which get cached up.
How shall i do this using custom code.
0 Kudos
james_decosta
Level 9

hi,
i have attached the custom code action ,it would be a pleasure if anyone can verify the abnormalities in the code or any new features to be added to make it work.
Basically i want to get the path to the folder(application server say jboss)
and delete it completely including the files which get cached after installation.
Regards,
james.
0 Kudos
bjfrary
Level 4

I never use getValue I thought that was for localization. I use substitiute.
0 Kudos