MySQL StoredProcedure sqlFile

I am trying to manage my stored procedures/functions in seperate files and including them in a chageSet like this:



The file looks like this:


DROP function IF EXISTS my_schema.my_func$$


CREATE FUNCTION my_schema.my_func ()

RETURNS INT DETERMINISTIC

BEGIN

/* my code here */

END$$



I am getting the following error:

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '$


CREATE FUNCTION …


Any ideas?  It seems as if i try add my own DELIMITER$$… in the file and not splltStatements, i get the same error.  


THanks!